CompuServe Thread

#C for the Amiga

8 messages in this thread
#42040From: Eugene ElderNov 12, 1985 7:27 AM
#41701-#C for the Amiga — declared parent_msg_num=41701, resolved parent_id points to #(none)
it is avail. now I have it! (299.00)$ *** There is a reply: 42062 Enter command, N for next message or <CR> for menu : n
#42062From: Bob KassoufNov 13, 1985 1:08 PM
#42040-C for the Amiga — declared parent_msg_num=42040, resolved parent_id points to #42040
Hi, How about a review? *b* Enter command, N for next message or <CR> for menu : n
#42310From: Eugene ElderNov 18, 1985 7:19 PM
#42062-#C for the Amiga — declared parent_msg_num=42062, resolved parent_id points to #42062
Wow youve got me stumped! What are you talking about? I have C. Im looking for a set of routines to learn with.
#42338From: Bob KassoufNov 19, 1985 10:51 AM
#42310-C for the Amiga — declared parent_msg_num=42310, resolved parent_id points to #42310
Hi, I was just asking if you could give us your opinion of lattice c. *b*
#42435From: Eugene ElderNov 22, 1985 9:33 PM
#42338-C for the Amiga — declared parent_msg_num=42338, resolved parent_id points to #42338
Well lattice C is the only C lang. iv ever worked on so my opinion would not be a one of knowledge. the lattice 'C' compiler is easy to work with and other then a simple ( INCLUDE STDIO ) routine that took me all evening to figure out how to use (which I still don really understand) its great! It has a special prg. that will compile the code for you,just type ( EXECUTE MAKE 'PRG.NAME (ret) )
#42534From: Bob KassoufNov 25, 1985 10:14 AM
#42435-C for the Amiga — declared parent_msg_num=42435, resolved parent_id points to #42435
Hi, Thanks, I've ordered Lattice too. More on this later when I get it. *b*
#42489From: GARY SARFFNov 24, 1985 9:43 AM
#42338-#C for the Amiga — declared parent_msg_num=42338, resolved parent_id points to #42338
Hi, just barging in. I have Lattice C 3.02 and have been porting a large (500K+) C program to the Amiga. Lattice C 3.02 has some bugs, quirks that I have found, I left a message about it over on CBM-2000. Basically, if you have some variable say x declared float or double and say something like if (x==1.0) it will crash your amiga when you try to compile it. The 1.0 can be any floating point literal. Lattice doesn't handle unions well when passed as arguments to functions, when you try to access the fields you get garbage instead of the value that you passed. You can't initialize a variable with the address of another variable, procedure,structure etc, this is probably because the amiga requires all programs to be relocatable, what I have to do is write an initialization procedure called first thing from main() and assign the appropriate addresses at run-time. Type casts seem to cause actual conversions or at least modifications of values that are assigned, they should NOT do this. Say char *q; int *p; p=(int *) q; will force q to an even address to assign to p. Unix C does not work this way. Also fseek() does not extend a file if you seek past eof, like it does on unix, you actually have to write something to the file and then seek to where you want to go. All in all though, it works, just the compiler generates all kinds of warnings about the most trivial things, I just ignore them though. bye – Gary
#42535From: Bob KassoufNov 25, 1985 10:17 AM
#42489-C for the Amiga — declared parent_msg_num=42489, resolved parent_id points to #42489
Hi gary, Thanks for the response. This will be my first excursion with C for many years. I hope Lattice is correcting the faults with the language and we will get updates as they come out. *b*