#282 Support for '.dbit' asm directive

closed
nobody
None
5
2009-11-27
2009-11-12
BLRCalvin
No

Greetings,

In SDCC v2.9, to allocate memory for a bit variable, the assembly directive ".ds 1" is used, which allocates one byte. For efficient use of memory space, a new asm directive like ".dbit N", which allocates N bits in bit segment is requested.

Discussion

  • Maarten Brock
    Maarten Brock
    2009-11-12

    For which architecture are you requesting this? And if SDCC outputs this directive shouldn't the underlying assembler need to understand it? Even the architecture should support accessing bits individually.

    Also why do you assume that DS always allocates bytes? For the mcs51 for example the memory area defines if it allocates bits or bytes.

    My guess is that this is a non-issue, therefor I set it pending.

     
  • Maarten Brock
    Maarten Brock
    2009-11-12

    • status: open --> pending
     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending --> closed