On Donnerstag 05 November 2009, Fatih Aygün wrote: > Hi, > > Currently the start-up file for the Atari platform fulfills (at least) two > separate functions. My knowledge on the other platforms is limited but a > quick look at the sources gives me the same impression for them too. > > The first function is to create the header and footer for the binary format > of the platform. The second one is to initialize the C run-time. I think > splitting those two functions in two separate files might bring some > advantages. > > The first scenario is: I want to write a non-C assembly program. I end up > writing an EXE header and footer, which I basically copy from crt0.s. If > the header/footer were in a separate file, I would just link that and > forget about it. > > The second scenario is: I want to write a C program but I want to use > another binary format. Like a bootable disk image, a cartridge image or > whatever. I write a custom linker config, I copy the start-up file, I > change it so that it creates the header/footer for my binary format. If the > C run-time initialization code were in a separate file I would just write > the config and binary header, and link to the library as usual. Moreover, > it could be possible to supply some alternative config files and > header/footer files with the cc65 package for some often used binary > formats. > > I'm sure similar scenarios are applicable for at least some of the other > platforms. > > Any thoughts? seperating the actual crt0 from the binary header like this is a very good idea, imho. -- http://www.hitmen-console.org http://magicdisk.untergrund.net http://www.pokefinder.org http://ftp.pokefinder.org Das Blockieren oder Filtern bestimmter Internet-Inhalte ist für die Europäische Union völlig inakzeptabel. <Viviane Reding, EU-Medienkommissarin, geschrieben ins Stammbuch der chinesischen Regierung im Juni 2009> ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Thu Nov 5 12:09:21 2009
This archive was generated by hypermail 2.1.8 : 2009-11-05 12:09:24 CET