On 8/24/07, Thomas Hruska <[EMAIL PROTECTED]> wrote:
> I don't have access to the Intel compiler (but I'd love to try it
> sometime and see if it is everything it claims to be).
>
> My guess (without actually trying it) is the assembler generated for the
> above is most likely _identical_. The difference is going to be where
> in the final executable the compiler decides to dump the strings
> (read-only or read/write memory).
FWIW, a gcc compiled program segfaulted when modifying *p = "string"
but accepted modifying p[] = "string"... I just tried this.
Of course, this isn't to be relied upon. :-)
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi