Discussion Forum

locate copyright message

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
erik malund
Posted
19-Jul-2001 13:48 GMT
Toolset
C51
New! locate copyright message
I want to put a copyright message into the ROM. How do I make the linker locate it immediately after the interrupt vectors?

Thanx,

Erik
Read-Only
Author
Jon Young
Posted
19-Jul-2001 14:46 GMT
Toolset
C51
New! RE: locate copyright message
Here is an example of placing the copyright in Main.c.

code char Copyright[] = "Copyright";

void main( void )
{
  code char *Dummy = Copyright; //this stops linking warnings
}

Now tell the linker to locate all global CODE variables from MAIN to 0x100. Do this by adding ?CO?MAIN(0x100) to the OptionsForTarget/Bl51LocateTab/CodeLine.
Read-Only
Author
erik malund
Posted
19-Jul-2001 15:38 GMT
Toolset
C51
New! RE: locate copyright message
Thanx, but how to do in a DOS command file ?

in advance thanks,

Erik
Read-Only
Author
Andrew Neil
Posted
19-Jul-2001 16:48 GMT
Toolset
C51
New! RE: locate copyright message
If you have uVision, it shows you the corresponding command line at the bottom of each options page; otherwise, you'll just have to read-up that manual.

Have fun!
Read-Only
Author
Andrew Neil
Posted
19-Jul-2001 16:52 GMT
Toolset
C51
New! RE: locate copyright message
I forgot:

uVision creates a .lnp linker command file.

So you could do a "dummy" buid with uVision, and then keep the .lnp file for use in your MS-DOS build?

Or just run uVision "non-interactively" from the command line to build your project?

Next Thread | Thread List | Previous Thread Start a Thread | Settings