atari email archive

a collection of messages sent at Atari from 1983 to 1992.

New Green Hills C compiler.

(1 / 2)


There is a new version of Green Hills C. This version generally produces
a little bit better code then the one were now using. There is an exception,
However, some subtraction expressions are worse. This is because the old version
was a little bit cavalier about lossing precision. The new version took an
overly cautious approach to the problem. There is supposed to be yet another
new version in a few weeks which does the right thing.
    Why get a new version when we are going to get a better one in a few
weeks? You may ask. Well, This version fixes a bug in pointer arithmetic that
allows you to link in external constants. This is of the form:
	extern SND1;
#define SOUND1 (byte)&SND1

The symbol SND1 is an external sound number generated and linked in.
This way you don't have to edit your .h file every time you get new
sounds. There is a bug in version 1.7.1 that prevents you from doing
this nice trick. The new version (1.7.6) fixes that.
 I've tried 1.7.6 and it seem to generate OK code. For all of My modules,
it was a little bit smaller. For a packrat module (Player.c) It was a
little bit bigger. In general, The code should be better with this new
version.

How do you get the new version?
Change the definition of NCC in your login.com file to:
NCC :== $sys$sysdevice:[green.1v7v8]cc68

If you have any problems with this new version, Contact Me asap.
			mpm

NEW C COMPILER

(2 / 2)


Last night I sent you all a message about the new Green Hills C compiler.
After more testing, I have found that it generates slightly larger code.
About 1%-2%. We are scheduled to get a better version in a few weeks.
If you can wait, please do. If you have a bug, try this version. Otherwise
continue to use the current version.
		mpm
Message 1 of 2

Feb 28, 1985