Sign in Join

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

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

fpc2abc

Multiple utilities to automate the conversion of fpc libraries to PascalABC(.NET)

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

fpc2abc

Multiple utilities to automate the conversion of fpc libraries to PascalABC(.NET), written in PascalABC

Features

For now, the utility can only detect stdcall and cdecl functions and partially generate dynamic libraries and (in the future) wrapper PascalABC files for them.

In the future, this utility will be able to:

  • unwrap(at least some cases of) variant records //<-initial purpose of the project actually
  • work with NativeInt and PChar
  • convert the entire fpc RTL(if it doesn't include assembler)
  • more?(miscelaneous stuff like single-element enum bug, no virtual destructors, overloads, statics(unless the conpiler flag is turned on) and so on)

Compiling

Only PascalABC is supported. To convert cdecl and stdcall functions to dlls, you will need the fpc compiler(for example the one which comes with Lazarus). There will be an option to just cut the calling convention out however.

Using

Generated exe's should work on non-windows OSes with mono, however, that was not tested yet.

abc2fpc anyone?