Re: 3 byte variables [feature request]
Peter Bigot <[email protected]>
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.user |
|---|---|
| Message-ID | <CAPOJ94M=9GS=VHrOjeTpkHQ3XGKEg6hzE+--S6andsyMXn71Ow@mail.gmail.com> |
Best to submit this to the gcc project; it's certainly not something that would be added through mspgcc. int20_t was an enhancement I thought useful since the MSP430 CPUX architecture enables it, but I don't have reason to believe other MSP430 toolchains (including the upcoming RH GCC) will recognize it. Native support for it on CPUX still requires 32-bits when it's written to memory, though, and that wouldn't change since its inherent in the way the instruction set works. Peter On Wed, Jun 5, 2013 at 8:53 AM, kuldeep dhaka <[email protected]>wrote: > while working on a program i faced a problem. > i need only 20 bit , and having a 32 bit only waste more memory(12 byte), > 24bit would much be better. > i need a uint24_t variable but gcc dont support it so i have to start with > uint32_t. > it would be very nice if gcc support such variables. > i tried a little program and found that gcc (on i686) dont support it. > > http://embeddedgurus.com/stack-overflow/2009/06/three-byte-integers/ > > -- > *Kuldeep Singh Dhaka* > +91-8791676237 > [email protected] > Programmer, Open Source, Web Developer, System Administrator, Entrepreneur, > Animal Lover, Student, Reverse Engineer, Embedded System, Learning. > > Bitcoins Accepted. > My GnuPG Public > Key< > http://pgp.mit.edu:11371/pks/lookup?op=get&fingerprint=on&search=0x23816C5609DC7E26 > > > Fork Me <https://github.com/kuldeepdhaka> > > > ------------------------------------------------------------------------------ > How ServiceNow helps IT people transform IT departments: > 1. A cloud service to automate IT design, transition and operations > 2. Dashboards that offer high-level views of enterprise services > 3. A single system of record for all IT processes > http://p.sf.net/sfu/servicenow-d2d-j > _______________________________________________ > Mspgcc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > > ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Mspgcc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mspgcc-users