Wim, I tried it, it doesn't work, although the maunal says that the ALIGN command will align to the byte, it only aligns to the word. Borland C++ Builder has a compiler pragma to do this, but I could find no such pragma in my Metorwerk DSP Compiler manual. Might be a good feature in the future, I'm not out of space (yet) so I can wait but you might start contacting MW. Jacob www.pontech.com Motorola DSP Developemt Tools --- In motoroladsp@y..., "Jacob Christ" <jacob@p...> wrote: > It appears that you can change the alingment boundary in the linker > by using the . = ALIGN(bytes) command. This would require that you > create a special section for you compressed strings, > say .compressed_strings. It looks like that you will then need to > have a seprate file just for your constant data that can be assigned > in the linker file to the .compressed_strings section. > > If I have time later today I'll try it out myself. > > Jacob Christ > www.pontech.com > Motorola DSP Developemt Tools > > --- In motoroladsp@y..., Wim de Haan <w.d.haan@e...> wrote: > > Hello, > > > > I'm looking for a method to store 2 characters in 1 word, because I > have not > > enough data flash memory. > > > > Normally you use: > > char *line1={"AaBbCc"}; // 1 character in 1 word > > > > This is possible: > > struct bytes { > > unsigned low_byte: 8; > > unsigned high_byte: 8;} ; > > struct bytes line2[3]={'A','a','B','b','C','c'};// 2 characters in > 1 word > > > > However this makes text not so well legible and time consuming to > program. > > Does somebody have a solution to store "AaBbCc" with 2 characters > in 1 word? > > > > Thanks in advance! > > > > > > Wim de Haan > > > > > > Exendis B.V. > > W.J. de Haan > > P.O.box 56, 6710 BB Ede > > Keesomstraat 4, 6716 AB Ede > > The Netherlands. > > Tel: +31-(0)318 - 676305 > > mailto:w.d.haan@e... > > URL: http://www.exendis.com |