Thread: converting Niklaus Wirth's examples from pascal to C

  1. #1
    Registered User fsx's Avatar
    Join Date
    Apr 2009
    Posts
    29

    converting Niklaus Wirth's examples from pascal to C

    Hello,

    I know almost nothing about pascal, but I found some reference online.
    How difficult is it to convert "Algorithms + Data structures = Programs
    by N. Wirth"'s examples to C?
    Do you suggest to do this by hand or to use a p2c automation?

    Regards,

    FSX

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    I'm pretty sure any tool to translate Pascal to C would produce pretty awful C code.

    Why not get a book on the subject that is written FOR C. There are a few of those around.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Complete Beginner
    Join Date
    Feb 2009
    Posts
    312
    Quote Originally Posted by fsx View Post
    Do you suggest to do this by hand or to use a p2c automation?
    Converting Pascal To C is wirth-less.

    Greets,
    Philip
    All things begin as source code.
    Source code begins with an empty file.
    -- Tao Te Chip

Popular pages Recent additions subscribe to a feed