[Sdcc-user] [PATCH] mcs51: allow to exclude bits bank

2012-08-29 Thread Philippe Rétornaz
Hello This patch enable to use: #pragma exclude bits In order to avoid having the automatic pushing of the bits "register" by interrupts handlers even if no code use them. Thanks, Philippe Index: src/mcs51/gen.c === --- src/mcs51/g

[Sdcc-user] [PATCH] Optimize _divulong on mcs51

2012-08-30 Thread Philippe Rétornaz
Hello The _divulong function use a bool variables, but this is not optimal: - this force the use of the "T" reg as soon as a 32bit division is used on mcs51, thus potentially reducing the stack size up to 24 bytes. - This force the compiler to use a bit, which produce suboptimal code - This does

[Sdcc-user] [PATCH] Optimize _divuint on mcs51

2012-08-30 Thread Philippe Rétornaz
Hello The _divuint function use a bool variables, but this is not optimal: - this force the use of the "T" reg as soon as a 16bit division is used on mcs51, thus potentially reducing the stack size up to 24 bytes. - This force the compiler to use a bit, which produce suboptimal code - This does