Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2011-06

Re: Pascal to C converter

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Skybuck Flying

Actually I am looking for object pascal to c++ converter to be precise, so with classes support

Bye,
Skybuck.

Earlier message 11 lines
From: Skybuck Flying Sent: Tuesday, June 21, 2011 11:04 AM To: FPC developers' list Subject: Pascal to C converter Do you guys know of any good Pascal to C converters ? I was working on my self, but it lacks a symbol table and unit traversal and things like that... Bye, Skybuck.

Reply by email

Skybuck Flying
to Hans-Peter Diettrich

-----Original Message-----

Earlier message 31 lines
From: Hans-Peter Diettrich Sent: Wednesday, June 22, 2011 11:26 AM To: FPC developers' list Subject: Re: [fpc-devel] Re: Pascal to C converter Skybuck Flying schrieb: > Actually I am looking for object pascal to c++ converter to be precise, so > with classes support Winking smile " http://texttransformer.com/Delphi2Cpp_en.html DoDi " I think I already tried that one a while ago... it wasn't so good or it didn't work (well). I'll stick with manual converting for now... though perhaps in the future I might need a tool or I make my own again, or slight modifications, just to speed up the process and do the majority of the work safely hopefully ! ;) Though knowing how it looked like might help/be better too. I appreciate you trying to help me though. I wouldn't need a converter if there was an object pascal to ptx compiler ! ;) :) Bye, Skybuck.

Reply by email

Michael Schnell
to Skybuck Flying
Skybuck Flying wrote 5 lines
I'll stick with manual converting for now... though perhaps in the future I might need a tool or I make my own again, or slight modifications, just to speed up the process and do the majority of the work safely hopefully ! ;)

AFAIK, the FPC compiler creates an intermediate (Arch-independent) coder before compiling same to the Arch dependent ASM. Maybe same can be used to try to create C++ code. (I don't know if this code still contains classes. )

Good luck :).

-Michael

Reply by email