Lattice C

C and PASCAL (or any other high-level languages) in here please

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

Tepic
Atariator
Atariator
Posts: 20
Joined: Mon Jan 26, 2004 2:29 am

Lattice C

Postby Tepic » Sat Mar 19, 2005 12:33 am

From a friend I have managed to get a copy of LC 5.5

Unfortunatly it's German, and I no nothing about that. All the reference manuals are english. but the general one is all german.

Can someone tell me how to set it up to run on my HD please??

Thanks.

User avatar
[ProToS]
Moderator
Moderator
Posts: 2242
Joined: Fri Sep 20, 2002 2:09 am
Location: Lourdes / France
Contact:

Postby [ProToS] » Sat Mar 19, 2005 3:09 am

I can't but Lattice C 5.60 uk could be down here
SeeU
[ProToS]/Facebook

Tepic
Atariator
Atariator
Posts: 20
Joined: Mon Jan 26, 2004 2:29 am

Postby Tepic » Sat Mar 19, 2005 3:13 am

Ohh, very nice! Thank you!

Problem solved!

User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2174
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Postby DrCoolZic » Sat Apr 08, 2006 4:03 pm

V5.60 seems to be a reasonable Ansi C version.
I was trying to use the V3.0 that I bought long long long time ago and it was pre-ansi with a lot of bugs.... and could not compile my source.

I figure out to compile my prog with V5.6 (using LC5) but it took me some time to figure out that the CXA44, CXAS55, ... unresolved references during linking were caused by a multiplication using double ... and it took me even more time to find out that for that matter I had to use the LCMNB.LIB !!! which I found almost by accident.

Thefore my question is: any chance to find LC documentation somewhere ? or at least is there a doc on the content of the libraries ? or is there a utility (librarian) to find out what are inside the lib ? Another interesting point would be to know about the flags for compiler linker and the .LNK format. My 1987 documentation on V3.0 does not help as the SW has changed a lot since. Yet another thing would be the debugger as it is a mistery too ...

Thanks

bolle
Retro freak
Retro freak
Posts: 10
Joined: Mon May 15, 2006 4:59 am
Location: Cologne

Lattice C Manuals v5.x

Postby bolle » Fri May 19, 2006 9:59 am

DrCoolZic wrote:Thefore my question is: any chance to find LC documentation somewhere ?


With the help of some others from here, I'm working on that point.

Stay tuned...

User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2174
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Postby DrCoolZic » Wed May 31, 2006 7:48 am

FYI there is another thread on the subject
http://www.atari-forum.com/viewtopic.php?t=2792

I would realy like to have the documentation and therefore I have proposed to scan the 5 Lattice manuals ... but it seems that the owner of the manuals "Hans" / "Nyh" is not answering anymore ...

Therefore if you have an alternate solution I would be very interested.

Thanks
Jean

User avatar
Nyh
Atari God
Atari God
Posts: 1496
Joined: Tue Oct 12, 2004 2:25 pm
Location: Netherlands

Postby Nyh » Wed May 31, 2006 9:01 am

DrCoolZic wrote:FYI there is another thread on the subject
http://www.atari-forum.com/viewtopic.php?t=2792

I would realy like to have the documentation and therefore I have proposed to scan the 5 Lattice manuals ... but it seems that the owner of the manuals "Hans" / "Nyh" is not answering anymore ...

Sorry, I am very busy at the moment. The manuals are still available. Have to find some time to sort it all out.

Hans Wessels

User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2174
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Postby DrCoolZic » Wed May 31, 2006 12:00 pm

No problem I am not in hurry.

Thanks - Jean

bolle
Retro freak
Retro freak
Posts: 10
Joined: Mon May 15, 2006 4:59 am
Location: Cologne

Postby bolle » Wed Jun 28, 2006 8:16 am

There is another thread to this subject with news, look here:

http://www.atari-forum.com/viewtopic.php?p=71428#71428

User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2174
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Postby DrCoolZic » Wed Jun 28, 2006 8:23 am

Yes I know. Lets keep the other thread that contains more info as the "main thread".

Jean

brainois
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 120
Joined: Mon Apr 17, 2006 4:32 pm
Location: Brussels, Belgium

Postby brainois » Sun Jul 02, 2006 7:16 am

Hello,

I am learning C on my falcon with lattice C. In the tutorial, one of the program uses the functions: random() and randomize() from stdlib.h.
When i try to compile it with lattice C, I git an "Undefined symbols" for both functions.

I looked in the "Library Manual" of lattice C, but could not find the equivalent functions.

EDIT: found a good tutorial about random numbers here

Regards

François

User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2174
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Postby DrCoolZic » Sun Jul 02, 2006 8:47 am

brainois wrote:functions: random() and randomize() from stdlib.h.

Humm ... never heard of such function in stdlib!?

I beleive the only two functions, related to random number genaration, provided as part of the standard lib are rand() and srand(seed)

Apparently Lattice C also provides more functions in math lib:
drand48(), eran48(), lrand48(), nrand48(), mrand48(), jrand48(), srand48(), seed48(), lcong48().
The functions generate various type of random numbers using the linear congruential algorithm and 48 bits arithmetic!!!

Note that the ST XBIOS (Trap #14) provides also a random generator function: 17 random.
Can be called in C as random() and return a long (only 24 bits) random number. The seed is changed each time you you turn on your computer.

Jean


Social Media

     

Return to “C / PASCAL etc.”

Who is online

Users browsing this forum: No registered users and 3 guests