You had me all excited, thinking that you had a solution for me. Turns out it
compresses that just as much. This can easily be tested by grep 2006
program.prc

It doesn't find it.

Chris Bruner
Compulife Software Inc.
==============================================
----- Original Message ----- From: "Ben Combee" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Thursday, January 12, 2006 2:41 PM
Subject: Re: Fixed string in code.


At 12:21 PM 1/12/2006, Chris Bruner Compulife wrote:
I'm needing to make a fixed string of sometag __DATE__ and __TIME__ in the
code such that it doesn't get mangled/compressed/packed during link. (The program will be
scanned to find compile timestamps to keep our software in sync with
updates).
I'm finding that the sometag is there but the date and time are only partly
there. (It looks like it was packed)

Does anyone know a way of specifying that the text must not be packed?

If you use it as a constant string in code, it should not be compressed. Just make a routine called

const char *GetTimeDate(void)
{
        return __DATE__ " " __TIME__;
}

That's because const strings referenced from code get stored in the clear in the code section, but global strings are stored in the compressed data resource that's expanded at runtime.
--
Ben Combee
Techwood Broadcasting Foundation, Austin Bureau Chief


--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/



--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to