On 13 Sep 2010, at 18:43, Petri Pellinen wrote:

> the C68 compiler for QDOS is the bee's knees and I love it. I stumbled
> into a minor problem with it the other day and I thought to post this
> just in case someone else happens to run into it also.
> 
> C68 compiler documentation mentions that it is possible to reduce
> binary size by about 12k if one doesn't need things like environment
> variables, command line parameters, etc. The documented way of
> achieving this is to declare the following at global scope:
> (*_Cinit)() = main;
> Well, since I'm targeting the original QL and want to squeeze out
> every kb possible I gave this a go and ended up with illegal
> instruction trap every time...
> 
> I contacted Dave Walker who is one of the authors and he was extremely
> kind and helpful and took a look. It seems that this is a
> documentation bug. The correct vector to override is actually _Cstart:
> (*_Cstart)() = main;
> does the trick.


This is useful information. The description of this facility appears on page 10 
of QDOSC68_DOC dated13 Mar 99.

George
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to