I am having problems with locating a second function to follow on from the first.
The following linker command works....
?PR?_LOADER?LOADER(0FA00h),?PR?_HEX2CHARNICK?LOADER(0FC30h)
but i do not want to specify the location of the second function just the first, looking at the documentation it says that i should be able to do the following....
CODE(?PR?_LOADER?LOADER(0FA00h),?PR?_HEX2CHARNICK?LOADER)
This causes a linker error..
What do I need to put in the linker command line so that the second function follows immediately on from the first.
CODE( 0X0000-0XFFFF , CODE(?PR?_LOADER?LOADER(0FA00h),?PR?_HEX2CHARNICK?LOADER) )
That's a CODE(...) command inside the parameter list of another CODE(...) command. Are you sure that's supposed to work? The message seems to indicate it's not.
Most line length problems are not application problems but Win32 problems. M$ are not a company run by developers, so they can't see the need for long command lines. Since their own tools are creating build scripts or piping commands on-the-fly, their developers don't complain to product management.
A lot of third-party tool vendors have teached their tools to support a @fname command line parameter, representing the name of a file with the actual command line.
If line length is a problem why does the following command work... be happy it does, I just recall that I have had instances of line length problems.
Since that made me 'mend my ways" forever, it could, of course, have been solved in a later release.
Erik
The command line I have shown is what i have added to the IDE i do not know what the IDE generated before
If line length is a problem why does the following command work...
INVALID COMMAND LINE SYNTAX POS: 275
evidently you do not show your full commandline.
also, the linker has problems with very long commandlines, stick some of your obj's in a library and include the library instead of a very lenghty lisy of objects in your link line.
Error code is......
RAMSIZE(256) CODE( 0X0000-0XFFFF , CODE(?PR?_LOADER?LOADER(0FA00h),?PR?_HEX2CHARNICK?LOADER) ) XDATA( 0X0000-0X0FFF ) *** FATAL ERROR L201: INVALID COMMAND LINE SYNTAX POS: 275 O Ireact RAMSIZE (256) CODE (0X0000-0XFFFF, CODE (?PR?_LOADER?LOADER (# Target not created
The command line looks OK.
This causes a linker error. What error do you get?
View all questions in Keil forum