Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!psuvax1!psuvm!ron From: RON@PSUVM.BITNET (Ron McCarty) Newsgroups: comp.lang.c Subject: rommable code in Turbo-C Message-ID: <90017.134546RON@PSUVM.BITNET> Date: 17 Jan 90 18:45:46 GMT Organization: Penn State University Lines: 24 I want to write some code in Turbo-C which will then be burned into ROM's. Can anyone tell me what special steps (if any) need to be taken so that I can do this? Can you point me to a text or manual that covers the subject? I can see that I would want to use a memory model which would place the code is a seperate segment. I would then assign the code segment to ROM and the other segments to RAM. But how do I force the compiler to put constants and literals in the code segment rather than in the data segment? For example, if I have statement like: y=x+3; or if (strcmp(name,"joe") == 0) how do I make sure that the 3 and the "joe" endup in ROM? Thanks. Ron McCarty Behrend College Penn State University Erie, PA 16510