[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

2761.0. "Lattice C Questions?" by KYOA::MIANO (O.K. so who cares about the METS?) Tue Jul 25 1989 03:01

I am trying to use the -f8 option with Lattice C.  The documentation
says that this is the fastest floating point option.  I have been
linking with the lcm881.lib library.  Unfortunately this does not work.
sqrt(3.0) returns 3e-164.  Obviously I have something crossed since
when I use lc -fi it seems to work.  Does anyone know the right combination
of libraries and lc options to get -f8 to work?

Also, is there any way to look at the 68881 registers in CPR?

John
T.RTitleUserPersonal
Name
DateLines
2761.1Same HereWJG::GUINEAUTue Jul 25 1989 12:1711
I get the same results withh -f8. You need to #include <mc68881.h> for -f8
but that gives me the same results. I was following some discussion
on the Lattice BBS for awhile on this same subject, but haven't checked back
in lately for results.

Lattice 5.03 is supposed to be comming out, and I've seen Dave Haynie
mention compiling with Lattice 5.04 on USENET. Maybe this is fixed
buy now?

John
2761.2KYOA::MIANOO.K. so who cares about the METS?Wed Jul 26 1989 17:1814
At first I liked the Lattice C package, but now I'm getting
really pissed off about the bugs.  The Compiler and Assembly won't
even compile/assemble the example programs the come with the system.
I called Lattice about my floating problems and they said it was a result
of a bug in the compiler.  A simple program like this:
#include <math.h>/<M68881.h>
double funct(){ double a ; a = 3.0 ; return sin(a) ; }
Doesn't even work correctly.  It don't see how the can advertise 68881 support.

My new question, is Aztec any better.  Would it be worth while to just
return the Lattice far a refund and get Aztec or would I have to go
through the same stuff?

John
2761.3Maybe...TALLIS::MCAFEESteve McAfeeWed Jul 26 1989 18:0113
    I'm probably not remembering this correctly, but I believe there
    was a discussion on USENET recently about M68881.h not having
    the correct function codes in it.  You may want to take a look at
    a 68881 manual and compare it to what is in M68881.h.  Someone
    posted the corrections to comp.sys.amiga.tech, but not having a
    68881 I didn't bother to grab them.
    
    This may not be the problem, but people on support lines often
    give the simplest answer rather than the correct one.
    
    regards,
    
    steve
2761.4I have them.WJG::GUINEAUWed Jul 26 1989 18:056
The 2 codes in question were (I think) exp() and sinh() - I fixed
my mc68881.h and got the same results (which I expected since I didn't
use either of the broken functions)

John
2761.5Relax...FRAMBO::BALZERChristian Balzer DTN:785-1029Thu Jul 27 1989 10:5119
    Re: .2
    
    While having bugs in a compiler is one of the worst things to happen,
    I yet have to find one that works 100% for any machine. 
    
    There's one thing to be sure of, however:
    
    If it's Lattice C for the Amiga which has a bug, it will be fixed
    ASAP or may already be fixed (see .1).
    
    Manx support doesn't suck, it's simply non-existent. For over a
    year now Manx has announced their next release. No bug fixes for
    the existing one at all (and there are bugs in it).
    
    I own Lattice C 5.02, and two of my fellow Software Brewers own
    Aztec C 3.6. They're both thinking about switching to Lattice.
    
    <CB>            
                                                 
2761.6YupWJG::GUINEAUThu Jul 27 1989 11:3631
I agree with <CB>, Lattice has EXCELLENT support. I got caught up on
all ther notes on thier BBS last night (haven't read them since march!).
On average there were about 5 notes a day entered (it took 45 minutes to 
have a continuous dump of "new notes" at 2400 baud!). Questions AND answers
from the simplest bigginer C to the most advanced stuff... 

FYI - thier BBS is at (312) 916-1200

No mention of 5.03, but 5.04 is due out "soon". One Lattice member thought
it was going to be mailed to all registered users like the 5.02 patch was.

From what I gather there is still a bug with -f8. I was too tired of reading
to enter a new note to ask. 

The functions in mc68881.h were exp() and log(). The fix was that the
opcode used in mc68881.h had them using BASE 2 when they should have been
using BASE 10 - resulting in incorrect results.

I've yet to get -f8 working on a program that just uses "standard math", no
trig. I stepped through using CPR (Code Probe) and it seemed if the code
in question executed slowly, the right answers came out!?! Timing bug
talking to the 68881? MAybe there not waiting for a BUSY bit from the 881?

I don't know. For now I just use 

	 LC -Lm+lib:lcmieee.lib -m2 -O prog.c

to get *fast* code.

John
2761.7Save My Long Distance Lattice Support Phone Bill?PANIC::JACOBUsque Ad Mortem AddendumFri Jul 28 1989 13:5824
    
    
    Hi Everyone,
    		I would very much like to get my hands on the latest
    version of Lattice C. I bought V5.0 a couple of months ago,sent
    off my Registration card and have heard nothing since. The problem
    like many of this ilk is caused by the fact that Lattice is Stateside
    and I am in London England. Does anyone know whether I am likely
    to receive anything from across the pond? Maybe someone local could
    chase them up and see what the deal is for me being in England ? 
    	By the way what version is current for LC and are there any
    major changes from 5.0. I just am hoping that it will put a stop
    to many of the "funnies" that keep occurring whilst using this
    product which is on the whole worth ever penny! 
        If anybody is willing to find out for me, my Lattice Amiga C
    serial number is AM01-74928.
    
    
    Regards, 
    
    Mark Jacob   (SWAS London)
    
    
    
2761.8A postcard should do it...FRAMBO::BALZERChristian Balzer DTN:785-1029Fri Jul 28 1989 14:0715
    Re: .7
    
    That's very strange...
    You should have received version 5.02 automagically...
                       
    I did, and I'm in Germany...
    
    In any case you should write them a letter and request the latest
    version (you might wanna allow them to wait until 5.04, which should
    be available RSN).          
    The newer versions fix nearly all of those "funnies" in 5.00.
    
    Regards,
    
    <CB>
2761.9Is there a Lattice support centre in Europe?PANIC::JACOBUsque Ad Mortem AddendumMon Aug 21 1989 13:4113
    
    
    When is Lattice v5.04 due ?   Or have I missed the boat ?
    Further to my previous note, I am now a reg'd L.C user but still
    haven't received a sausage through the post (apart from a postcard
    telling me I am registered)                             
    
    Mark.
    
    p.s. Do you have to pay for the new versions ??
    
     
    
2761.10Nah. (Where is that Europe anyway ;-D )FRAMBO::BALZERChristian Balzer DTN:785-1029Mon Aug 21 1989 14:4716
    Re: .9
    
    All of the Lattice mail I received went thru/came from Belgium.
    But I doubt that this is a support centre. 
    As far as I know 5.04 still isn't finished.
    Did you specifically request an update from them? You gotta push
    them fellas sometimes... :-)
    If you requested 5.04, they'll probably wait until it's finished.
    
    No, these patches are free (at least they were for me). 
    I paid for my 3.03 -> 4.00 and my 4.00 -> 5.00 upgrades, but was
    never charged for the half dozen patch disks I received.
    
    Regards,
    
    <CB>
2761.11V5.02 required no effortTLE::RMEYERSRandy MeyersMon Aug 21 1989 19:368
Re: .9, .10

I got a Lattice V5.02 though the mail with no prompting or complaints
on my part.  At the time, this was Lattice's policy.

I think that people that registered V5.00 after the great V5.02 mass
mailing didn't get a copy.  Or, at least I know of one person that
failed to get an update..
2761.12An LSE funnyFNYFS::KENNEDYFri Sep 15 1989 08:4815
	I _finally_ took the time to install my Lattice C 5.02 onto my
	hard drive last night and everything went (sort of) smoothly.
	I compiled and ran several of the example programs as a sort
	of IVP, ran several of the utilites and they all worked fine.

	However, when running LSE (which I'm really pleased with after
	ED and MicroEmacs) I noticed a small problem; the first time that
	I hit <F1> for help I get the help screens okay, after that I get
	"ERROR - HELP FILE NOT FOUND" in the message area. If I hit <F1>
	twice again the help screens appear as usual.

	Anyone else noticed this? Seems like a toggle-problem to me.

Keith

2761.13KYOA::MIANODallas is gone...Buckey is next.Fri Sep 15 1989 14:356
>	Anyone else noticed this? Seems like a toggle-problem to me.

The same thing happens to me.

John

2761.14likewiseSAUTER::SAUTERJohn SauterFri Sep 15 1989 19:302
    Me too.  I've never considered it a very serious problem.
        John Sauter
2761.15LSE - a problem child?ATLV5::MCDONALD_JSurly to bed, surly to rise...Sun Sep 17 1989 15:0410
Hmm... I haven't really paid much attention to that problem, but I am having
another problem with LSE.  Whenever I edit a file that's in a subdirectory on
my harddisk, LSE seems to make a copy of that file in the parent directory.  If
I CD to DH0:foodir and edit foo.c, when I exit from LSE there'll be a foo.c in
DH0: as well as the updated on in DH0:foodir.  It also seems as if something
funny is going on in respect to closing these files.  If I try to delete the
one in the parent directory, AmigaDOS tells me it's still in use.  Is anyone
else having this problem?

					John
2761.16Glad I'm not the only one...FNYFS::KENNEDYMon Sep 18 1989 09:403
	Fine, I was more concerned that I glitched during my installation.

2761.17Maybe fixed in 5.04WJG::GUINEAUImpossible ConcentrationMon Sep 18 1989 12:0010
Did you guys get/apply the 5.02 patch? I know it fixed some LSE stuff
(I use LSE all the time, but haven;t tried to reproduce this behaviour).


I wonder when the 5.04 patch will be out???

At least someone should post this trouble to their BBS so it might get fixed.

John
2761.18KYOA::MIANODallas is gone...Buckey is next.Mon Sep 18 1989 17:396
>I wonder when the 5.04 patch will be out???

I was on the phone with Lattice last week and they said they said that
they were in the process of duplicating the kits.

John
2761.195.02->5.04WJG::GUINEAUImpossible ConcentrationMon Sep 18 1989 19:053
So they're sending it to all registered users, like 5.02?

John
2761.20KYOA::MIANODallas is gone...Buckey is next.Mon Sep 18 1989 23:438
>So they're sending it to all registered users, like 5.02?
That's what they told me then BUT on numerous previous occasions
(documented in this file) when I've called them took my name and address
and said that they were only sending it to people who had called with
problems.  I've called so much they don't even ask for my registration
number anymore.

John
2761.21Help is just a phone call away ?PANIC::JACOBUsque Ad Mortem AddendumWed Oct 04 1989 11:0313
    
    
    Can somebody reply with Lattice tech-support phone number (as from
    the UK) Or the number I should ring to receive the latest patch
    disks as I have bought version 5.0 and although haven't hit any
    serious funnies yet (to my knowledge), would like to continue
    developing in greater confidence.
    
    Regards, Mark Jacob 
    
    p.s. Is 5.04 available yet ?
    
    
2761.22KYOA::MIANOI see the N end of a S bound horseWed Oct 04 1989 17:047
An update on 5.04

I called last week about another Lattice problem.  The guy on the
line said that they found a bug in the assembler so they were 
going to reassemble everything and then rebuild the kits.

John
2761.23Has nobody got their number?PANIC::JACOBUsque Ad Mortem AddendumFri Oct 06 1989 08:125
    
    I would like to give Lattice a phone call.
    Could some kind person leave either their sales/support number?
    
    Thanks,Mark.
2761.24TALLIS::MCAFEESteve McAfeeFri Oct 06 1989 12:158
Last time I called Lattice I used:

1-800-533-3577

regards,

steve
2761.255.00 -> 5.04 ... Not without 5.02 you won't!PANIC::JACOBUsque Ad Mortem AddendumFri Oct 27 1989 08:3514
    
    Hi all,
    	Having bought 5.00 sometime ago, I have just received the patches
    for 5.04, however I never received the patches to take me to 5.02.
    And 5.00 can't be patched to 5.04 direct.
    
    grovel,grovel...
    Is there a Lattice C use in London area (England) who has the 5.02
    patches?  as I am desperate to get to 5.04. My mailstop is HHL-3
    if you trust the internal mail to send the disk in. You'll get it
    right back, or maybe someone could even put the patch stuff on the net?

    Regards, Mark. 
   
2761.26You could have got it (for free, even) ;-)FRAMBO::BALZERChristian Balzer DTN:785-1029Fri Oct 27 1989 10:4613
    Re: .25
    
    Well, you SHOULD have received the 5.02 patch, at least I did. But
    then, I requested it from Lattice. So one obvious thing to do is
    to contact Lattice and have them send you the 5.02 stuff.
    While I would like to help you, I would feel very uncomfortable
    (copyrightwise) putting the 5.02 stuff on the net...
    
    If you're really desperate, send me email...
    
    Regards,
    
    <CB>
2761.27Jumping into CDECWET::DAVISMark Davis - 206.865.8749Wed Dec 06 1989 18:0312
    I am primed and ready to take the plunge.  I've read many of the notes
    on C compilers and am ready to purchase Lattice's C.  My question(s) is
    what do I need (software wise-PD or otherwise) to LEARN C programming
    besides the Lattice C development kit and some good books?
    
    I plan on buying C from Abel (~$168.00).  I have an A500 with 3MB RAM
    and 80MB of disk storage.  I have a couple of books, "Understanding C",
    and "Programming in C", both are "generic".   Is there anything else I 
    need to make my learning experience on the AMIGA as glitch-free as 
    possible?  
    
    Mark
2761.28basic adviceSMAUG::SPODARYKBinary ThrottleWed Dec 06 1989 19:5126
    I would highly recommend, Rob Peck's "Programmer's Guide to the Amiga".
    It's a good intro to Amiga programming, with working examples.  
    I wouldn't say that all the code is particularly elegant, but certainly 
    very good to learn from.
    
    The Amiga has a steep learning curve.  Intuition has a lot of
    capabilities, and learning to take advantage of the environment 
    takes a bit of hard work.  But it's a _lot_ of fun.  I've really
    been having a ball lately, now that I'm 'over the hump' (so to speak)
    on a lot of things.  Early on, though, GURU's ran rampant. :^)
    
    Also, I would try to accumulate good PD code to learn from.  R.J.
    Mical's 'Programmers Suite' has some good examples, as well as
    many of the Fish disks.  Some of John Guineau's code has been very
    helpful to me.  Sort it out based on what you're interested in.  
    
    It's sounds like you're all set hardware wise.  Don't be discouraged
    trying to learn C _and_ Amiga programming at the same time.  Both
    require some time and effort.
    
    ~Steve
    
    Oh, yeah.  If you're going to be building user interface type stuff
    ( gadget, windows, menus, etc) you'd probably want to invest in
    PowerWindows.  Great utility, although it does crap out once in a 
    while.  
2761.29"Mastering Standard 'C'"LEDS::BUSCHDave Busch at NKS1-2Thu Dec 07 1989 15:4117
I recently took a course sponsered by DEC and taught by Rex Jaeschke. This was 
a five day "Intro to 'C'" programming course, and he also teaches an advanced 
course. He has just written a book which was used in the course (in its pre-
publication version). The book is very readable, and has exercises and answers/
solutions. It is called "Mastering Standard 'C'" and is available from:

	Professional Press, Inc.
	101 Witmer Rd.
	P.O. Box 446
	Horsham, PA, 19044

The price is about $37, but if you call now and get an order form, they will 
give you a "pre-release discount of about $5. No, I have no affiliation with the
author or publisher.

Dave

2761.30If you get < 5.04..SSDEVO::YESSEComputing at 6200 ft.Thu Dec 07 1989 18:415
	..And as I just found out, having purchased V5.02 last week,
	send your registration card in *with a letter* requesting the
	update to 5.04 (if you should receive 5.02). Lattice told me the
	update is free, and the	letter helps guarantee attention 
	(as opposed to sending just the postage-free card).
2761.315.04a patch?AISG::LANDINGHAMGuy M., DLB8-1/A2, 291-9268Sat Mar 03 1990 23:3215
Does anyone have the 5.04a patch?  I am currently running 5.04 and just
downloaded the 5.05 patch, which is supposed to patch versions 5.04 or
5.04a, but lpatch fails on the first try (lc1) with a wrong version error.
Several others have posted the same problem on the BBS, but as yet there is no
reply mentioning a fix.

What I'd like to try is to upgrade from 5.04 to 5.04a and then see if the
5.05 patches will take, but the 5.04a patch file is nowhere to be found on
the BBS?

Also, would anyone out there who is running 5.05 be good enough to let me
know if they are able to save a key macro file in LSE successfully?  This
is a known bug (with 5.04?) and I'd like to see if it's been fixed.

Thanks.
2761.32PD MicroSoft look_alike library wanted.ULTRA::BURGESSMad man across the waterThu Dec 27 1990 14:1023
	I am trying to port some code written for a PC_Clown machine, 
it was developed using Microsoft C.  It seems that Microsoft C 
discriminates between console & port I/O and stream I/O.  conio.h 
contains fuction declarations for:

cgets		getch		kbhit		ungetch
cprintf		getche		outp
cputs		inp		outp
cscanf		inpw		putch

	Obviously NorthC {from FF384} is rejecting  <conio.h> ; I am 
stumbling through the code by commenting this out to see what it 
objects to next.  What I seem to need most is  getch, getche and 
kbhit - I can't find them in the PD libraries I've looked in so far, 
which were cclib on ff399, the NorthC libraries and amicus.am03 - 
though this last one seems to have getch.  I guess I'm asking for a 
pointer to a   PD MicroSoft look_alike C library for the Amiga  
Any help would be greatly appreciated, we DON't WANT to go for a 
bridge-board or AtOnce solution.

	Reg

2761.33reference bookVICE::JANZENTom MLO21-4/E10 223-5140Thu Dec 27 1990 15:356
	C: The complete Reference, has things in it about PC-only libraries.
	Maybe it would explain them enough that you could write your own
	version of conio or something.
	I seem to recall that the book has conio explained in it. Check first.
	It's a current paperback.
Tom