Path: utzoo!mnetor!uunet!husc6!bloom-beacon!athena.mit.edu!rlcarr From: rlcarr@athena.mit.edu (Richard L. Carreiro) Newsgroups: comp.sys.amiga Subject: Chip and Fast and Lattice 4.0 Message-ID: <3625@bloom-beacon.MIT.EDU> Date: 10 Mar 88 17:55:37 GMT References: <3518@watcgl.waterloo.edu> <263@stsci> Sender: daemon@bloom-beacon.MIT.EDU Reply-To: rlcarr@athena.mit.edu (Richard L. Carreiro) Followup-To: comp.sys.amiga Organization: Massachusetts Institute of Technology Lines: 52 Summary: How to set things up properly Greetings! Sorry for such an elementary question, but I am getting a bit confused. I know that graphics and sound data must go into Chip ram, but other data (and code) can go into Fast Ram. My question: I am working on a n-body simulation program. I want the code to be in Fast RAM to do the number-crunching as fast as possible. I also want to plot to the screen. Now, if I use pre-intitialized structures (i.e. RKM), what compiler/linker flags do I have to use to get the data right? What about if I do something like: struct Window *MakeWindow(x,y,...,...) long x,y,..,...; { struct NewWindow Nw; Nw.TopEdge = x; . . . return((struct Window *)OpenWindow(&Nw)); } (pardon any mistakes in this - I am teaching myself C and trying to learn Amiga-specifics at the same time - but I think you see the general idea.) Then how do I have to set the flags? I have read and reread the Lattice 4.0 manual and various Amiga books I have, but I am still confused. I have an Amiga 1000 with a 2Meg StarBoard2. Any help would be greatly arrpeciated. Please EMAIL unless you thing it would be of general interest. (But you all already knew that :-) Thanks, Rich ARPAnet: rlcarr@athena.mit.edu UUCP: ...!mit-eddie!athena.mit.edu!rlcarr or maybe rlcarr%athena.mit.edu@eddie(.mit.edu) BITNET: rlcarr%athena.mit.edu@MITVMA.mit.edu ******************************************************************************* * Richard L. Carreiro "Havlicek stole the ball!!!!" * * rlcarr@athena.mit.edu -- Johnny Most 4/15/65 * *******************************************************************************