home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / pascal / 6445 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.1 KB

  1. From: gael@gnlab008.grenoble.hp.com (Gael_Marziou)
  2. Date: Mon, 9 Nov 1992 11:53:24 GMT
  3. Subject: Re: Pascal to C translator
  4. Message-ID: <2010002@gnlab008.grenoble.hp.com>
  5. Organization: Hewlett-Packard, GND
  6. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!scd.hp.com!hpscdm!hplextra!hpcc05!hpbbn!hpgndlab!gnlab008!gael
  7. Newsgroups: comp.lang.pascal
  8. References: <1992Nov3.211510.26562@pencom.com>
  9. Lines: 16
  10.  
  11. Well, I'm currently porting a 65 Klines HP Pascal source to C, I'm using
  12. p2c 1.20 which is GNU software so you can find it nearly everywhere.
  13. I found some bugs but got a very good support from the author Dave Gillespie.
  14. The main pb is that p2c doesn't translate Pascal compiler directives into
  15. C preprocessor directives. The only workaround I found is to transform those
  16. directives into EMBED comments (special p2c format for comments) which will
  17. be expanded into #define ...)
  18. The most important thing to look at is size of translated data types which
  19. can be different from the Pascal equivalent.
  20.  
  21. Cheers,
  22. Gael
  23.  
  24. Gael Marziou : gael@hpgndl71.grenoble.hp.com or Gael_Marziou@hp6330.desk.hp.com
  25.  
  26.  
  27.