From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9481a69308ab1362,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-07 19:55:11 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: king_able@yahoo.com (KK) Newsgroups: comp.lang.ada Subject: assembly generated using gcc -S on a .adb Date: 7 Jul 2002 19:55:11 -0700 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 141.155.10.68 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1026096911 2601 127.0.0.1 (8 Jul 2002 02:55:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 8 Jul 2002 02:55:11 GMT Xref: archiver1.google.com comp.lang.ada:26932 Date: 2002-07-08T02:55:11+00:00 List-Id: Could someone elucidate for me just why the assembly language file generated by something like: gcc -S test.adb can't be further compiled when something like the following: gcc test.s is invoked? I get the following errors: /usr/lib/crt1.o: In function `_start': /usr/lib/crt1.o(.text+0x18): undefined reference to `main' Yet when I compile a c program similarly (first to asm then on to executable as above) everything is fine. I realize that gcc *is* a c compiler (among other things) and that the reference to main in my error message probably has something to do with gcc thinking that the asm it's trying to assemble was originally a c program. I also can still see plenty of ada specific stuff in the header & footer of test.s so there seems to be some indication that even at the level of asm there is still quite a bit of language specific stuff going on. My question is why? I would think that once you get to the level of asm all that kind of stuff would have necessarily fallen away. BTW, I'm aware of gnatbind and gnatlink, and yes those do work and produce an executable. What I'm wondering is if there is a path to a working executable without using those utilities. In other words, is there a way for a machine with just gcc installed, to produce an executable from an asm file that was generated from an .adb ?? If you're wondering why such a thing would matter to me, it's for a web project wherein some assembly is generated and I'm looking for a way for someone to be able to finish the process on their own without having the whole GNAT system installed on their machine. Thanks, Rob