Re: [cc65] Using CA65 as a stand-alone assembler

From: MagerValp <MagerValp1cling.gu.se>
Date: 2007-10-30 00:54:55
>>>>> "G" == Groepaz  <groepaz@gmx.net> writes:

>>> Compile with -tc64 and link with -t none

BB> Exactly what i was looking for. Great! :-)

G> infact, it is probably not exactly what you are looking for. you
G> really should use a linkerconfig. unless for very special cases,
G> there should be NO .org directives in your sourcefiles.

Like gpz says you should use a custom linker config. Using -tnone is a
hack that has side effects. With a custom config, there's no need for
a main routine - that's a side effect from linking with the C runtime.
For a few practical examples check out my projects, e.g. udpslave.

-- 
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp@cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Oct 30 00:55:11 2007

This archive was generated by hypermail 2.1.8 : 2007-10-30 00:55:15 CET