[gccsdk] Help with gas

Peter Naulls peter at chocky.org
Mon Dec 31 06:59:21 PST 2012


On 12/31/2012 06:55 AM, John Tytgat wrote:
> In message <20121230165053.5732A27C7C at orac.inputplus.co.uk>
>            Ralph Corderoy <ralph at inputplus.co.uk> wrote:
>
>> Without -c for `compile only' the C compiler kicks off the
>> linker/loader, the `ld' in the output, to produce a finished executable.
>> ld observes the C runtime tries to call main() but no main() is defined.
>
> Indeed.  For further better understanding what's going on, you can use
> gcc's -v option.  That will show all executing subprocesses : preprocessing,
> compiling, assmebling and/or linking.

Full:

http://www.riscos.info/index.php/GCC_tutorial




More information about the gcc mailing list