sdcc 2.9.0
too many slocs in DSEG, even
/////////////////////////////////
example code:
void taskAIBufferExecute(void)
{
static data char ch = 0;
data float tx, ty;
tx = (float)ADCRead(ch);
ty = tx * 3.123898E-5
+ x[ch][0] * 1.2495591E-4
+ x[ch][1] * 1.8743388E-4
+ x[ch][2] * 1.2495591E-4
+ x[ch][3] * 3.123898E-5
+ y[ch][0] * 3.5897338
- y[ch][1] * 4.851276
+ y[ch][2] * 2.9240527
- y[ch][3] * 0.6630105;
...
sdcc --model-large
/////////////////////////////////
lst file:
440
;--------------------------------------------------------
441 ; internal ram data
442
;--------------------------------------------------------
443 .area DSEG (DATA)
0000 444 _DIOBufferR::
0000 445 .ds 8
0008 446 _GetAnalogI_fResult_1_1:
0008 447 .ds 4
000C 448 _GetAnalogI_x_1_1:
000C 449 .ds 4
0010 450 _GetAnalogI_xn_1_1:
0010 451 .ds 4
0014 452 _taskAIBufferExecute_ch_1_1:
0014 453 .ds 1
0015 454 _taskAIBufferExecute_tx_1_1:
0015 455 .ds 4
0019 456 _taskAIBufferExecute_ty_1_1:
0019 457 .ds 4
001D 458 _taskAIBufferExecute_sloc0_1_0:
001D 459 .ds 4
0021 460 _taskAIBufferExecute_sloc1_1_0:
0021 461 .ds 4
0025 462 _taskAIBufferExecute_sloc2_1_0:
0025 463 .ds 4
0029 464 _taskAIBufferExecute_sloc3_1_0:
0029 465 .ds 4
002D 466 _taskAIBufferExecute_sloc4_1_0:
002D 467 .ds 4
0031 468 _taskAIBufferExecute_sloc5_1_0:
0031 469 .ds 4
0035 470 _taskAIBufferExecute_sloc6_1_0:
0035 471 .ds 4
0039 472 _taskAIBufferExecute_sloc7_1_0:
0039 473 .ds 4
003D 474 _taskAIBufferExecute_sloc8_1_0:
003D 475 .ds 4
0041 476 _taskAIBufferExecute_sloc9_1_0:
0041 477 .ds 4
0045 478 _taskAIBufferExecute_sloc10_1_0:
0045 479 .ds 4
0049 480 _taskAIBufferExecute_sloc11_1_0:
0049 481 .ds 4
004D 482 _taskAIBufferExecute_sloc12_1_0:
004D 483 .ds 4
0051 484 _taskDIOBufferExecute_cAddrI2C_1_1:
0051 485 .ds 1
Maarten Brock
C-Front End
non bugs
Public
|
Date: 2009-07-10 07:09 thanks for posting the context. |
|
Date: 2009-07-10 02:31 the source code: |
|
Date: 2009-07-07 10:56 But, Maarten, |
|
Date: 2009-07-07 10:24 Floating point calculations are difficult for an 8051, requiring many |
|
Date: 2009-07-07 06:06 Can you please post a complete program demonstrating the problem? |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2009-07-07 10:24 | maartenbrock |
| resolution_id | None | 2009-07-07 10:24 | maartenbrock |
| artifact_group_id | None | 2009-07-07 10:24 | maartenbrock |
| assigned_to | nobody | 2009-07-07 10:24 | maartenbrock |
| close_date | - | 2009-07-07 10:24 | maartenbrock |