oere / progressive-learning-platform

Automatically exported from code.google.com/p/progressive-learning-platform
GNU General Public License v3.0
0 stars 0 forks source link

add .array preprocessor #207

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The c compiler aligns character arrays to word boundaries (chars are 32 bits in 
plpc). We need a .array directive that takes the same input as .asciiz but pads 
with zeros.

Also, it needs to insert a null character at the end. This should only be used 
by plpc for string constants.

If this gets shot down, I can make plpc do this the hard way with a bunch of 
.word directives.

Original issue reported on code.google.com by david.jakob.fritz on 27 May 2012 at 3:47

GoogleCodeExporter commented 9 years ago
make it .char32

Original comment by david.jakob.fritz on 28 May 2012 at 12:24

GoogleCodeExporter commented 9 years ago
fixed with .asciiw

Original comment by david.jakob.fritz on 31 May 2012 at 8:05