|How are string literals represented internally by compilers? firstname.lastname@example.org (Tony) (2009-06-19)|
|Re: How are string literals represented internally by compilers? email@example.com (glen herrmannsfeldt) (2009-06-21)|
|Re: How are string literals represented internally by compilers? firstname.lastname@example.org (Walter Banks) (2009-06-23)|
|Date:||Fri, 19 Jun 2009 22:45:46 -0500|
|Keywords:||storage, question, comment|
|Posted-Date:||21 Jun 2009 16:51:26 EDT|
I don't remember reading about how string literals are represented in any of
the books I have. Until I go back and scour those for the info (assuming it
is there), I'll ask here. How are string literals represented internally by
compilers? I assume that it's probably null-terminated character string for
C and C++ and some kind of length-prefixed thing for Pascal in a specially
designated data segment area and then just some sort of pointer for a given
literal is placed in the code, yes?
[It's language specific, but for these examples, yes. -John]
Return to the
Search the comp.compilers archives again.