Article View: comp.sys.atari.st
Article #26937Re: Alcyon C printf (again)
From: Jwahar R. Bammi
Date: Tue, 19 May 1987 22:24
Date: Tue, 19 May 1987 22:24
37 lines
2046 bytes
2046 bytes
In article <870518190028.128932@RADC-MULTICS.ARPA> Peck@RADC-MULTICS.ARPA (Rodney) writes:
>
> Ok, here we go again. After my last request for information about why
>the printf function DOESN'T WORK in alcyon C, I received many replies
>which said that they just used sprintf + Cconws.
I dunno. Printf always worked for me. I assume you have v4.14 of the compiler
and the new libraries that came with it.
If you are using the motorola fast floating point libraries, ie.
you are specifying the `-f' option to C068, link as follows
lo68 -r -s -o foo.68k gemstart.o foo.o gemlib libf
or
link68 foo.68k=gemstart,foo,gemlib,libf
If you are using the IEEE floating point libraries, ie. you DO NOT
specify the `-f' option to C068, link as follows
lo68 -r -s -o foo.68k gemstart.o foo.o libm gemlib
or
link68 foo.68k=gemstart,foo,libm,gemlib
Note that libm comes before gemlib, otherwise you pick up
the incorrect version of printf from gemlib for the IEEE format.
If you are using no floating point, AND you are compiling with the
`-f' option, you can skip linking in libf by defining dummy
etoa, ftoa, atof symbols, thereby satisfying the linker, and saving
yourself a couple of bytes.
hope that helps,
--
usenet: {decvax,cbatt,cbosgd,sun}!cwruecmp!bammi jwahar r. bammi
csnet: bammi@case
arpa: bammi%case@csnet-relay
compuServe: 71515,155
Technical Details
Message-ID:
<2120@cwruecmp.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ut-sally!husc6!sri-unix!sri-spam!ames!sdcsvax!ucbvax!cbosgd!cwruecmp!bammiReferences:
<870518190028.128932@RADC-MULTICS.ARPA>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ut-sally!husc6!sri-unix!sri-spam!ames!sdcsvax!ucbvax!cbosgd!cwruecmp!bammi From: bammi@cwruecmp.UUCP (Jwahar R. Bammi) Newsgroups: comp.sys.atari.st Subject: Re: Alcyon C printf (again) Message-ID: <2120@cwruecmp.UUCP> Date: Tue, 19-May-87 18:24:23 EDT Article-I.D.: cwruecmp.2120 Posted: Tue May 19 18:24:23 1987 Date-Received: Sat, 23-May-87 07:01:16 EDT References: <870518190028.128932@RADC-MULTICS.ARPA> Reply-To: bammi@cwruecmp.UUCP (Jwahar R. Bammi) Distribution: world Organization: Case Western Reserve University Lines: 37