#282 Support for '.dbit' asm directive



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.


  • 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
  • SourceForge Robot

    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).

  • SourceForge Robot

    • status: pending --> closed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks