icedland / iced

Blazing fast and correct x86/x64 disassembler, assembler, decoder, encoder for Rust, .NET, Java, Python, Lua
MIT License
2.83k stars 232 forks source link

C-Compatible Exports DLL, Delphi/Pascal Imports #579

Open TetzkatLipHoka opened 3 weeks ago

TetzkatLipHoka commented 3 weeks ago

Adds Delphi 7+ Support via C-Imports from Windows DLLs Including Delphi Samples

wtfsck commented 3 weeks ago

I'll have a look at this later.

I assume there's generated code too, could you split that up into one commit so it's easier to review?

TetzkatLipHoka commented 3 weeks ago

Wdym? You need the binarys for the Samples to test? Iam about to make a last update adding combo-functions for faster processing.

wtfsck commented 2 weeks ago

I'm talking about the code that generates enums and other stuff. You need to update the generator to create those files. Adding those manually is a PITA to update.

Generator: https://github.com/icedland/iced/tree/master/src/csharp/Intel/Generator

TetzkatLipHoka commented 2 weeks ago

So far there is no generator, the pascal import is hand made. Since I implemented almost all types as pseudo-classes to allow a structure similiar to rust I think creating a generator for the 57000-Lines types Unit is impossible within reasonable a timescale