[cc65] Re: C Compiler Semantic Analysis

From: Jonathan Graham Harston <jgh1arcade.demon.co.uk>
Date: 2006-01-17 13:37:54
> Message-ID: <17356.7980.999425.107423@panini.cling.gu.se>
 
MagerValp <MagerValp@cling.gu.se> wrote:
> I've also been playing a bit with compilation, and there is a lot in
> CC65 that you can use. The linker, assembler, and runtime library can
 
I've been building a make/compile system for 6502 BBC BASIC and
have been wondering what to call each stage it passes through. I
am familiar with the compile, link, assemble, etc. stages with
'C'.
 
There are four stages:
 
* Join together source files into a single logical unit
* Remove code redundancies (unused functions and procedures)
* Crunch code to remove REMs and surplus spaces, etc.
* Add machine code startup code
 
At the moment I am calling these stages load, link, compress,
mcode, which reflects the commands I use at each stage, but I
think stage two shouldn't be called 'link' and I think stage 1
might better be called something like append or join. The makefile
currently runs as follows:
 
*| Stage 1:
LOAD "Prog/src"                   Load core program
*fred Extra1                      Load local libraries
*fred Extra2
*fred %.BLib.FileIO               Load global libraries
*fred %.BLib.String
*| Stage 2:
*link                             Remove redundancies
*| Stage 3:
*crunch                           Crunch code
SAVE "Prog"                       Save result
*| Stage 4:
*mcode Prog                       Add machine code startup code
 
'*fred' is a place-holder command until I work out the correct
name to use. So, can you advise me what I should call each stage?
 
Thanks.
 
-- 
J.G.Harston - jgh@arcade.demon.co.uk - mdfs.net/User/JGH
BBC BASIC for Windows and Internationalisation
  See http://mdfs.net/Software/BBCBasic/Windows/ProgTips
----------------------------------------------------------------------
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 Jan 17 14:00:18 2006

This archive was generated by hypermail 2.1.8 : 2006-01-17 14:00:21 CET