[Coco] Microware C Compiler port

Bob Devries devries.bob at gmail.com
Wed Jan 21 19:47:38 EST 2009


Sent by private email, John.

--
Regards, Bob Devries, Dalby, Queensland, Australia

Isaiah 50:4 The sovereign Lord has given me
the capacity to be his spokesman,
so that I know how to help the weary.

website: http://www.home.gil.com.au/~bdevasl
my blog: http://bdevries.invigorated.org/

----- Original Message ----- 
From: "John W. Linville" <linville at tuxdriver.com>
To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
Sent: Thursday, January 22, 2009 10:33 AM
Subject: Re: [Coco] Microware C Compiler port


> 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.
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco 




More information about the Coco mailing list