[comp.lang.c] machine independent atof

jeff@unh.UUCP (Jeffrey E. F. Friedl) (05/26/88)

Hiho,
	I'm writing a cross assembler for the NCUBE Multicomputer and have
run into a problem with which I'm hoping someone can help.  The NCUBE floating
point formats are different from the host machine's (A VAX running BSD 4.3 in
this case) and so I'm having a hard time generating the proper static data
for floating point constants. The NCUBE floating point conforms to the IEEE
Binary Floating Point Standard P754.  I need some kind of machine independent
atof().... I'd like to eventually get this running on a variety of machines,
including various Vaxen and Suns.

	Any ideas?

	While I'm at it, does anyone have any tips, etc, on how to generate
the complete C library short of writing everything from scratch?  The assembler
is part of a cross compiler for the NCUBE that I'm developing. Has anyone done
this before for the NCUBE?

	Seeing as I've never done a *real* assembler/compiler before, any
help would be *most* appreciated.

 	Thanks!
	Jeffrey

------------------------------------------------------------------------------
Jeffrey Friedl, Box 2146 Babcock House, Durham NH 03824
..!{uunet,decvax}!unh!jeff,     jeff@unh%csnet-relay,     BITNET%"j_friedl@unhh"
...!ucbvax!kentvax!jfriedl