![]() |
guidelines for modifying the linker script???
I got into the scripting thing -- I figure it's a good way to get my newbie programmers involved quickly. I modified the scripting system to allow mutliple script routines in the one script array (I have a NAME and an END "command" that indicates the extent of each script).
So I started writing lots of little scripts (all in the one array). I'm not even halfway into it when the linker complains: Code:
MPLINK 3.90, LinkerCan someone explain the syntax and semantics of the linker script? And what the physical limits are? See my linker script below. Thanks, Norm Code:
// $Id: 18f8520i.lkr,v 1.4 2003/03/13 05:02:23 sealep Exp $ |
Re: guidelines for modifying the linker script???
Our team is having the same problem. Does anyone know how to fix this?
[edit] We managed to fix this problem by activating the optimization options in the compiler. We also removed the third argument from all the autonomous scripting functions and changed the structure definition to only two arguments. We also changed the first argument from a long int to an int, all of which freed up a lot of space. Hope this helps. |
Re: guidelines for modifying the linker script???
We tried increasing the linker file, but quickly discovered why FIRST has it marked Read-Only. The only compiler/linker switches that can help you require a complete and total recompile of everything, but there are some modules for which FIRST only supplies a library, not source code.
We went back and did some *serious* code reduction and manual optimizations to get it all to fit. Lynn (D) - Team Voltage 386 Software PS. Watch for us at the Central Florida Regionals, we'll be the ones capping the center goal with a vision tetra in autonomous every now and then! See BitTorrent videos at http://ldeffenb.dnsalias.net:30049. Download the one called "20050222 Tetras". PPS. BitTorrent clients are available at www.BitTorrent.com or www.BitTornado.com. |
| All times are GMT -5. The time now is 15:59. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi