Thanks very much for your time replying. I had used in the past MicroC a compiler from a small company in Canada that generated the starting  code right into the asm file.
I have not used GCC in the past.
Can you give me an example to go from here.
Do I have to place a call to crt0 in the body of the program?
How do I generate a file that will include it.?
I compiled my program with the following line in the command.
sdcc -mz80 test.c
Sorry for the inconveniences. Jose.

Vangelis Rokas <vrokas@otenet.gr> wrote:
Even in pic16 port, crt0 code isn't emitted in the assembly output
(that is the .asm file). crt0 in pic16 is compiled to an object module
(that is an .o file), that is linked later by the linker with the user's
object file. SDCC just translates the C source to an assembly
listing. The C source doesn't contain any crt0 code, so the asm
file doesn't contain crt0 code either.

The same should happen with z80. The same happens with gcc.
Have you ever seen the init code of programs created with gcc?

regards,
Vangelis


----- Original Message -----
From: "Jonathan Dumaresq"
To:
Subject: Re: [Sdcc-user] z80 compiler


> if the z80 port is the same thing as the pic16 port you have to put it on
> command line to get crt0 linked with your .c file
>
> regards
>
> Jonathan
> ----- Original Message -----
> From: "Jose DeMoya"
> To:
> Sent: Tuesday, October 12, 2004 8:54 PM
> Subject: [Sdcc-user] z80 compiler
>
>
> >I just installed the last version of SDCC and
> > everything seems to be running fine.
> > Only problem I have had is that when I use the
> > compiler for the z80 processor, the crt0
> > initialization code does not appear in the asm file.
> > I ran a very short program to test it.
> > Compiled with the command:
> > sdcc -mz80 test.c
> > Everything appears fine but the fact that I don't see
> > the init code from crt0.
> > Any suggestions...
> > Sorry to ask such an innocent question.
> > Jose.
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> > Use IT products in your business? Tell us what you think of them. Give us
> > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
> > more
> > http://productguide.itmanagersjournal.com/guidepromo.tmpl
> > _______________________________________________
> > Sdcc-user mailing list
> > Sdcc-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/sdcc-user
> >
> >
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>
>



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user


Do you Yahoo!?
vote.yahoo.com - Register online to vote today!