Re: [cc65] LUnix

Date view Thread view Subject view

From: Groepaz (groepaz_at_gmx.net)
Date: 2003-01-02 23:11:49


On Thursday 02 January 2003 22:58, Ullrich von Bassewitz wrote:
> On Thu, Jan 02, 2003 at 10:46:22PM +0100, Groepaz wrote:
> > Unresolved export: `main'". out of curiosity, if i use "-t c64" instead
> > of "-C lunix.cfg" the error disappears (producing a useless output
> > ofcoz).
>
> I have never tried that myself (I'm just the programmer:-), but "main" is
> an export, which means that it is your program that needs to export a label
> called "main".

eh... obvious :=P adding a label "main" at the start of crt0.s did the trick, 
thanx for the hint :)

> If I understand that correctly, "main" is the label called by the Lunix
> loader to start a program. So just add a label "main" to the beginning of
> your startup code, export it, and things should start working.

yep :) lemme see if i can come up with a working hello world :o)

> When using the "none" target, nothing will really work, so I'm not sure if
> linking against some parts of the runtime library will help.

???

what else, other than memory config, startup code and standard library would 
the -t switch affect then?

-- 
          ___ ___ .___________________ .___________ _______.
    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 23:12:01 CET