Re: [cc65] ca65 as crosscompiler

From: Christian Groessler <chris1groessler.org>
Date: 2013-10-08 23:58:09
Hi Oliver,

On 10/08/13 22:57, Oliver Schmidt wrote:
>> On the C64 EXEHDR contains the BASIC stub to start the
>> program. If it's left out, there is still the header to load the
>> program to the correct place. So one can write a program
>> for e.g. $C000 and load it (with 'LOAD"prog",8,1') and start it
>> manually ("SYS49152").
> You are right that the C64 EXEHDR has totally different semantic than
> the Apple 2 EXEHDR. However what they have in common is that they are
> what ca65-as-pure-crossassembler users can't agree upon. So it's
> "cool" to make that controlable from the cmdline without the need to
> edit the linker config.


Ok,


>> - '--dump-config' doesn't work:
>>    $ ld65 --dump-config c64
>>    ld65: Unknown option: --dump-config
>>    $
> I can't find '--dump-config' on
> http://oliverschmidt.github.io/cc65/doc/ld65-2.html#ss2.1 ;-))


But try

$ ld65 --help
Usage: ld65 [options] module ...
Short options:
   -(                    Start a library group
   -)                    End a library group
   -C name               Use linker config file
   -D sym=val            Define a symbol
   -L path               Specify a library search path
   -Ln name              Create a VICE label file
   -S addr               Set the default start address
   -V                    Print the linker version
   -h                    Help (this text)
   -m name               Create a map file
   -o name               Name the default output file
   -t sys                Set the target system
   -u sym                Force an import of symbol `sym'
   -v                    Verbose mode
   -vm                   Verbose map file

Long options:
   --cfg-path path       Specify a config file search path
   --config name         Use linker config file
   --dbgfile name        Generate debug information
   --define sym=val      Define a symbol
   --dump-config name    Dump a builtin configuration
   --end-group           End a library group
   --force-import sym    Force an import of symbol `sym'
   --help                Help (this text)
   --lib file            Link this library
   --lib-path path       Specify a library search path
   --mapfile name        Create a map file
   --module-id id        Specify a module id
   --obj file            Link this object file
   --obj-path path       Specify an object file search path
   --start-addr addr     Set the default start address
   --start-group         Start a library group
   --target sys          Set the target system
   --version             Print the linker version
$


It announces a '--dump-config' option.


> But seriously, check out
> https://github.com/oliverschmidt/cc65/commit/37c492b544dec2460fc2c16a3d66275cc0d4edc0


I know.


regards,
chris

----------------------------------------------------------------------
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 8 23:58:25 2013

This archive was generated by hypermail 2.1.8 : 2013-10-08 23:58:27 CEST