Thread View: gnu.g++.bug
2 messages
2 total messages
Started by chatty%FRLRI61.BITNET
Mon, 18 Sep 1989 16:00
___main undefined
Author: 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
___main undefined
Author: Michael Tiemann
Date: Mon, 18 Sep 1989 18:06
Date: Mon, 18 Sep 1989 18:06
3 lines
476 bytes
476 bytes
It is in the latest libg++ Michael
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads