[cc65] LUnix

Date view Thread view Subject view

From: Groepaz (groepaz_at_gmx.net)
Date: 2003-01-02 22:46:22


I've been playing a bit with LUnix (ie, hacked the fifo driver for use with 
the silversurfer ;=)) and i am wondering whats the deal to compile code for 
it..... ofcoz, i know that there is currently no library support whatsoever 
(i would hack some basic i/o stuff then), but thats not my problem.... thing 
is, i cant even compile an empty main() that does nothing. i created a simple 
crt0.s, and also compiled the machine-independent parts of the 
(runtime-)library... now when i link all this together i get a "Error: 
Unresolved export: `main'". out of curiosity, if i use "-t c64" instead of 
"-C lunix.cfg" the error disappears (producing a useless output ofcoz).

any ideas? is that due to not yet finished o65 support or sth? or am i missing 
something? :o)

oh and related to that... maybe there should be a skeleton crt0.o and a 
machine-independent none.lib... its a bit odd that right now not even the 
runtime-library (which is kindof required to use the c-compiler :=P) gets 
linked when you compile a program for the "none" target..... i would expect 
the compiler to produce a working, plain raw "linear" binary when no specific 
memory config (and startup) is given.... well, atleast it shouldnt be 
necessary to compile the runtime-lib yourself to compile anything at all :) 


-- 
          ___ ___ .___________________ .___________ _______.
    c=64 /   |   \|   \__    ___/     \ \_   _____/ \      \ [groepaz]
     gb /    '    \   | |    | /  \ /  \ |    __)_  /   |   \ gp32
    cgb \    .    /   | |    |/    '    \|        \/    |    \ psx
     gba \___|_  /|___| |____|\____|__  /_______  /\____|__  / dc
          -----\/-----'---------------\/--------\/---------\/
       http://www.hitmen-console.org    Hitmen WWW Headquarters
       http://fly.to/hitmen-groepaz     my personal playground
       http://rr.c64.org/silversurfer   home of the RR debugger
       ftp.musoftware.de/pub/groepaz    cc65 dump site

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-01-02 22:46:27 CET