User Activity

  • Committed [30e8bd] on git mirror

    * support/regression/tests/bug-4171.c: disabled test for mcs51 as it

  • Posted a comment on ticket #4244 on Small Device C Compiler (SDCC)

    I do not see what you tried to fix here and p[-1] is in general a bad idea. p = name + AR_NAME_LEN; - while (*--p == ' ' && p >= name) - ; - return sd_strndup (name, p - name + 1); + + while (p > name && p[-1] == ' ') + --p; + + return sd_strndup (name, p - name); Why are you casting size_t hdr.ar_size to size_t here? + buf = (char *) new ((size_t) hdr.ar_size); - if (fread (buf, 1, hdr.ar_size, libfp) != hdr.ar_size) + if (fread (buf, 1, (size_t) hdr.ar_size, libfp) != (size_t) hdr.ar_size) Get...

  • Posted a comment on ticket #1038 on Small Device C Compiler (SDCC)

    I did not mean that generating IFX iCodes is better. I don't believe it ever is. SDCC should simply not do that. I suggest to simply fail early when the table is too large for the back end so the user can modify his code (or come to his/her senses what he/she is trying to do).

  • Modified a comment on ticket #1038 on Small Device C Compiler (SDCC)

    mcs51 genJumpTab() does not check against 256 entries but also cannot handle more. And thus lifting the limit in [r17258] will result in silent generation of wrong code.

  • Posted a comment on ticket #1038 on Small Device C Compiler (SDCC)

    The limit is per-port Ah, you're right. I missed that. I still think it is ridiculous to generate a 16kB table in 32 kB memory. All destinations can only hold a return statement at best. Or if all entries jump to the same destination, it might be better to make the user write the software differently as long as SDCC cannot simplify the code by itself.

  • Posted a comment on ticket #1038 on Small Device C Compiler (SDCC)

    mcs51 genJumpTab() does not check against 256 entries but also cannot handle more. And thus lifting the limit in [r17258] will result in silent generation of wrong code.

  • Posted a comment on ticket #1038 on Small Device C Compiler (SDCC)

    mcs51 only uses jmp @a+dptr (a jump table) for a maximum of 16 cases, usually up to 7. mcs51 uses a (lsb/msb split) vector table up to 256 cases. mcs51 genJumpTab() currently cannot handle more, but probably can be made to. But a range of 7936 values should be handled in the front end and turned into two comparisons. Building a table with 7936 identical entries would be ridiculous. The table alone would take 1/4 of the memory space. Now this raises the question if SDCC should be able to generate...

  • Modified a comment on ticket #4270 on Small Device C Compiler (SDCC)

    I would also like to bring attention to [bugs:#4112], as it is relevant to the ongoing PIC16 work tracked here. The updated #4112 patch has now been validated against SDCC trunk r17247 on Windows/MSYS2 with MinGW-w64 and GPUTILS r1333. Verified results: Original PIC16 assembler quoting failure reproduced. Updated six-file patch applies cleanly to r17247. CCAS_RAW is generated correctly. PIC18F1220 object compilation passes without compiler flag overrides. Complete PIC16 non-free libdev build passes....

View All

Personal Data

Username:
maartenbrock
Joined:
2003-10-16 08:59:06
Location:
Tilburg / Netherlands / CET
Gender:
Male

Projects

This is a list of open source software projects that Maarten Brock is associated with:

Skills

This is a list of skills that Maarten Brock possesses:

  • C

Personal Tools