may@husc4.UUCP (05/29/87)
I am working on a program which uses lots of Intuition structures, including the Image structure. On page 198 of the Intuition manual, it is stated that Image data must be loaded into Chip memory. Is there a way I can selectively load this data into Chip memory, without having to Allocmem() and copy within the program, or use something like FixHunk, or Hide? What I'd like to do is place all the data structures that must go into Chip memory into a single file, and have that data put into Chip memory when the compiled program is executed. I hope I made myself clear. Is this possible? Jason may@husc4.harvard.edu seismo!harvard!husc4!may
cmcmanis%pepper@Sun.COM (Chuck McManis) (05/29/87)
In article <2120@husc6.UUCP> may@husc4.UUCP (Jason May) writes: > ...it is stated that Image data >must be loaded into Chip memory. Is there a way I can selectively >load this data into Chip memory, without having to Allocmem() and >copy within the program, or use something like FixHunk, or Hide? > Jason Yes it is. There are two ways to do it. If you are using the Lattice C compiler (version 3.10) then you can put that data in a different module and use the -ad switch when compiling it. That says that the data segment of this object module should be loaded into Chip memory. If you already have a .o file the ATOM utility available on the developers tools disk will force that module to load into Chip memory. And of course you can use FixHunk to force all data into chip memory. --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you.