not enough code space to debug - Arch
This is a discussion on not enough code space to debug - Arch ; Hi, I'm using Rowley Associates CrossStudio for ARM v1.7 build 4 (which relies on GCC C++ compiler) to develop a C++ program for an LPC2103. My problem is that I'm running out of code space (flash), mainly because some of ...
![]() |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| |||
| |||
| I'm using Rowley Associates CrossStudio for ARM v1.7 build 4 (which relies on GCC C++ compiler) to develop a C++ program for an LPC2103. My problem is that I'm running out of code space (flash), mainly because some of the .cpp files I wrote have many class definitions, even though some of those classes are never instantiated from my application. I need to debug, so I need to keep all code optimizations off. Is there any way, keeping optimizations off, to tell the linker NOT to include the code for those classes that are never used by my application? Thank you. Bill |
|
#2
| |||
| |||
| |
|
#3
| |||
| |||
|
Bill > I'm using Rowley Associates CrossStudio for ARM v1.7 build 4 (which > relies on GCC C++ compiler) to develop a C++ program for an LPC2103. > My problem is that I'm running out of code space (flash), mainly > because some of the .cpp files I wrote have many class definitions, > even though some of those classes are never instantiated from my > application. I need to debug, so I need to keep all code optimizations > off. Is there any way, keeping optimizations off, to tell the linker > NOT to include the code for those classes that are never used by my > application? You need to do a "garbage collected build" using gcc options: -ffunction-sections -fdata-sections and ld options: --gc-sections Andrew |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
All times are GMT -4. The time now is 06:52 PM.




Linear Mode