Program too long

I’m trying to compile a program and it tells me all the time that it’s too long:

region text is full

section.vectors [0000ffe0->0000ffff] overlaps section .text […]…

The thing is that i’m not using floating points nor any huge library and the .o weights 9k… I don’t know whay this happens. Does it have to do with some for loops on it? How can i check which is the reason for this and thus mend it??

Thanks,

Alex

What processor are you using? What compiler? Do you have any large strings or a lot of “const” variables? What optimizations are you having your compiler use?

I am new to this too, but my first guess is that you are doing something wrong with your interrupt vectors. Two places in your code are declaring or assigning the same interrupt vectors.

Hi!

Thanks for your answears, I think it was related to a for loop that i had, cause when I took it out it stoped saying that…

By the way, I’m using MSP430f2013, mspgcc (gnu cc) and not many constants.

Now this seems to have gone crazy cause any program I compile it tells me “Program recived signal SIGTRAP, Trace/breakpoint trap” and there seems to be no reason why!! It didn’t give me this signal 2 days ago with the same programs!! I’ve tried really simple ones like no interruption, only a blinking led and still this appears.

Let’s see what 0x0000f806 in reset_vector_() means!!

Support for the msp430f2* is pretty new, so you may have hit a bug…

How can we know the size of the actual compiled code?