flat assembler
Message board for the users of flat assembler.
Index
> High Level Languages > I am translating C to Pascal and need help. |
Author |
|
dogman 24 Jul 2013, 13:11
Join the free pascal mailing list. They have genius Pascal programmers!
|
|||
24 Jul 2013, 13:11 |
|
arcangel 24 Jul 2013, 16:17
|
|||
24 Jul 2013, 16:17 |
|
rugxulo 24 Jul 2013, 20:35
Traditional (ISO standards: 7185 or 10206) Pascal doesn't have bitwise operations, at least not natively. So "<< 8" would just be "* 256". Later non-standard variants (Turbo, Delphi) and offshoots (Modula-2, Oberon) either had explicit bitwise operators or library functions or offloaded such things to equivalent of a BITSET type. (See here or here or here for more.)
P.S. If the calling convention and object format (etc.) are compatible, most compilers let you link in compiled code from other languages. FPC and GPC already support C-based functions, so you don't have to manually convert it to Pascal, just make sure everything is declared and externed properly and just link it. It's not quite as easy as it sounds, but it's far from impossible and by default officially supported. For FPC, see here; for GPC, see here. |
|||
24 Jul 2013, 20:35 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.