ftp.delorie.com/archives/browse.cgi | search |
From: | ams AT ludd DOT luth DOT se (Martin Str|mberg) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: OT: how can I declare and use struct with as.exe ? |
Date: | 24 Jan 1999 20:02:13 GMT |
Organization: | University of Lulea, Sweden |
Lines: | 20 |
Message-ID: | <78fu85$fgh$1@news.luth.se> |
References: | <789639$att$1 AT nslave1 DOT tin DOT it> <78e00r$msl$1 AT news DOT luth DOT se> <36AB5D36 DOT 389B AT cam DOT org> |
NNTP-Posting-Host: | queeg.ludd.luth.se |
X-Newsreader: | TIN [UNIX 1.3 950824BETA PL0] |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Vic (tudor AT cam DOT org) wrote: : Martin Str|mberg wrote: : > Declare a struct in C, compile with "-S" and look at the output? : : doesn`t help much. the following C code [...] : The way it declares a struct, only when it is global (if it`s in a : fuction it uses the stack) is by using : : .comm name,length: : : .comm _out_main,16 declares an out_main struct 16 bytes long. : you access the members by their offset in the struct. So there is no assebler equivalent for C's struct in binutils' as? Boston, Don't Look Back, MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |