Article View: gnu.g++.bug
Article #433___main undefined
From: chatty%FRLRI61.BITNET
Date: Mon, 18 Sep 1989 16:00
Date: Mon, 18 Sep 1989 16:00
34 lines
1045 bytes
1045 bytes
For the following code, g++ 1.36.0-, using gcc 1.35.99, produces
the following assembler output, on a sun3 os3.5 .
main ()
{
printf ("hello\n");
}
#NO_APP
gcc_compiled.:
.text
LC0:
.ascii "hello\12\0"
.even
.globl _main
_main:
link a6,#0
movel d2,sp@-
jbsr ___main
movel d0,d2
pea LC0
jbsr _printf
addqw #4,sp
clrl d0
jra L1
L1:
movel a6@(-4),d2
unlk a6
rts
What is this ___main function, and where is it found?
Stephane Chatty chatty@frlri61.bitnet
chatty@lri.lri.fr
Technical Details
Message-ID:
<8909181600.AA20633@lri.lri.fr>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!CUNYVM.CUNY.EDU!chatty%FRLRI61.BITNETShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!CUNYVM.CUNY.EDU!chatty%FRLRI61.BITNET From: chatty%FRLRI61.BITNET@CUNYVM.CUNY.EDU Newsgroups: gnu.g++.bug Subject: ___main undefined Message-ID: <8909181600.AA20633@lri.lri.fr> Date: 18 Sep 89 16:00:31 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 34