[Coco] Microware C Compiler port

John W. Linville linville at tuxdriver.com
Wed Jan 21 19:33:35 EST 2009


On Thu, Jan 22, 2009 at 09:58:04AM +1000, Bob Devries wrote:
> According to the documentation, if you want to use printf() to print 
> longs or floats, the following needs to be added somewhere at the 
> beginning of the code, to let the linker know to use the correct library 
> routine:
>
>    pffinit(); /* for floats */
>    pflinit(); /* for longs */

Ah, now we are on to something... :-)  Unfortunately, adding pflinit()
results in a link error:

Preprocess..
Compile..
Optimize..
Asm..
Link..
Unresolved references:
 L02ad           pflinit_c       in ./lib/clib.l
linker fatal: unresolved references

Which is probably due to this line in clib/mw-std/pflinit.a:

	L0279 blt   L02ad

Which is a branch to a label that does not exist.  Bad library
disassembly?  I should dig-up an original clib.l and see if that works
better -- anyone have one they can send to me so I don't have to dig
through a pile of floppies? :-)

John
-- 
John W. Linville		Linux should be at the core
linville at tuxdriver.com			of your literate lifestyle.



More information about the Coco mailing list