This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F28335 - C Compiler support for "Packed Strings"?

I have a legacy project that was ported from a LF2407A processor that was making use of "packed strings". The packed strings hold two characters per 16 bit word, the first character goes in to the high byte, the next in to the low byte.

In the assembler, using the F28335, you can use the .pstring directive to create packed strings.

Previously, the developers working on this project would generate ASM output from the C compiler, search and replace the .string with .pstring within the ASM file, then assemble the file. This worked Ok but seems to have created some type of memory mapping issue when attempting to reference these strings in C with a pointer, for whatever reason the C complier is treating these strings as "near" pointers even though all modules are compiled with the large memory model. I can see this by viewing the mixed-mode C and assembly while debugging.

Anyhow all of this jumping through hoops to specify packed strings within C is a real pain.

Is there anyway to create a packed C string using a compiler directive? Any way to specify packed in the literal string like:

"How now brown cow?"P

where P indicates the string is to be a packed string.

Thanks in advance.