public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* pascal strings in C
@ 2003-11-17 10:20 Andy
  2003-11-17 19:17 ` Dale Johannesen
  0 siblings, 1 reply; 2+ messages in thread
From: Andy @ 2003-11-17 10:20 UTC (permalink / raw)
  To: gcc


Dear GCC Developers:

I'm working on porting a project which uses pascal-style strings in C++ 
code, for example like this:   unsigned char *str = "\phello";

Please could you tell me if it is possible to make GCC support these 
pascal strings.

I did some searches and noticed that a pascal string patch was submitted 
in 2001, but I don't know whether it made it into GCC.  I tried using the 
"-fpascal-strings" option with GCC, but it said it was unrecognized.  
What can I do?

I notice that Apple's version of GCC supports the "-fpascal-strings" 
option.  Has this feature been integrated into the main distribution?  I 
suppose I could try to use Apple's version of GCC, but that probably 
won't work because I need to compile for x86, not PowerPC.

Please reply to:  spamme416@optusnet.com.au

Thanks very much.

Andy

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: pascal strings in C
  2003-11-17 10:20 pascal strings in C Andy
@ 2003-11-17 19:17 ` Dale Johannesen
  0 siblings, 0 replies; 2+ messages in thread
From: Dale Johannesen @ 2003-11-17 19:17 UTC (permalink / raw)
  To: Andy; +Cc: gcc, Dale Johannesen

On Nov 16, 2003, at 5:50 PM, Andy wrote:
> I'm working on porting a project which uses pascal-style strings in C++
> code, for example like this:   unsigned char *str = "\phello";
>
> Please could you tell me if it is possible to make GCC support these
> pascal strings.
>
> I did some searches and noticed that a pascal string patch was 
> submitted
> in 2001, but I don't know whether it made it into GCC.  I tried using 
> the
> "-fpascal-strings" option with GCC, but it said it was unrecognized.
> What can I do?
>
> I notice that Apple's version of GCC supports the "-fpascal-strings"
> option.  Has this feature been integrated into the main distribution?  
> I
> suppose I could try to use Apple's version of GCC, but that probably
> won't work because I need to compile for x86, not PowerPC.

The 2001 patch came from Apple and was not accepted into the mainline 
compiler.

I'd suggest trying Apple's version (still 3.3 based).  We can't promise
that the x86 back end works, but there's a reasonable chance it does.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-17 18:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-17 10:20 pascal strings in C Andy
2003-11-17 19:17 ` Dale Johannesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).