RON@PSUVM.BITNET (Ron McCarty) (01/18/90)
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