NO

Author Topic: Try to rearrange the code, or make it smaller  (Read 6580 times)

drakoh

  • Guest
Try to rearrange the code, or make it smaller
« on: April 08, 2005, 04:59:26 PM »
hi there,
me again ! ^_^

always for Pocket PC, using latest version 3.00.4

error #3053: [asm] Offset too big (> 256). Try to rearrange the code, or make it smaller.
error #3053: [asm] Offset too big (> 4096). Try to rearrange the code, or make it smaller.

that's what I get trying to compile my project ... (pretty big c file, about 55k)

wanna have a look ? thx for your time !

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Try to rearrange the code, or make it smaller
« Reply #1 on: April 08, 2005, 07:51:59 PM »
The never ending story continues...

Attached is a new version of the compiler that *seems* to fix the problem. I can compile, but get a bunch of linker errors. I let you sort them out... ;-)

Your previously reported struct assignment bug should also be fixed in this version.

Pelle
/Pelle

drakoh

  • Guest
Try to rearrange the code, or make it smaller
« Reply #2 on: April 09, 2005, 12:19:28 AM »
hey you're the boss !

do you have any pattern for those types of problem ? or are these always very different ?

thx for your time !

Anonymous

  • Guest
Try to rearrange the code, or make it smaller
« Reply #3 on: April 09, 2005, 12:34:28 AM »
Quote from: "Pelle"
The never ending story continues...

Attached is a new version of the compiler that *seems* to fix the problem. I can compile, but get a bunch of linker errors. I let you sort them out... ;-)

Your previously reported struct assignment bug should also be fixed in this version.

Pelle


So, should we all be updating to this version?

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Try to rearrange the code, or make it smaller
« Reply #4 on: April 09, 2005, 10:59:12 AM »
Quote from: "drakoh"
do you have any pattern for those types of problem ? or are these always very different ?

Not always the exact same pattern. Usually when accessing function arguments or local variables.

The number of input arguments to a function, the number of arguments to any of the sub-functions that is called from a function, the total size of local variables, the use of the inline assembler, the use of a variable number of arguments etc. all (to some degree) affect what type of instructions are generated to access a local variables. This is much more complicated for ARM processors (Pocket PC) than for X86 processors (desktop Windows).

Pelle
/Pelle

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Try to rearrange the code, or make it smaller
« Reply #5 on: April 09, 2005, 11:00:48 AM »
Quote from: "ldblake"
So, should we all be updating to this version?

Not unless you program for Pocket PC...

Pelle
/Pelle

drakoh

  • Guest
Try to rearrange the code, or make it smaller
« Reply #6 on: April 11, 2005, 04:19:31 PM »
thx pelle ! I dont have thoses errors no more !

I do understand all the problems you mention about code assembling.

I only now have some linking problems ! ^_^

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Try to rearrange the code, or make it smaller
« Reply #7 on: April 11, 2005, 04:46:42 PM »
By now, you have probably found most of the 'bad spots'... ;-)

Pelle
/Pelle

drakoh

  • Guest
Try to rearrange the code, or make it smaller
« Reply #8 on: April 11, 2005, 05:42:20 PM »
I guess trying to build an average size program using different os sources can help finding the little quirks !

great thx for your hard work !