exokem
Explore posts from serversCreating a .NET language
I am interested in creating a language that, when compiled, is interoperable with C#.
I understand the basics of lexing/parsing, but I don't know what would be necessary when compiling the syntax tree to IL in order for the language to be debuggable in something like visual studio or VSCode. I am comfortable approaching IL generation, but I don't know if I will need to generate a PDB or embed some other kind of debug labels in the IL or whatever else may be needed to allow debugging. I'm also not sure if there is anything else I should consider with this.
33 replies
❔ DllImport From C Library
I have compiled a C library to a DLL and am trying to use some of the functions from this library in a C# project.
C#:
C:
This exception occurs when either of the above functions are called:
I don't know if my DllImport signatures are correct, or if there is a problem with the way I have compiled the C library - I have tried using dumpbin and various DLL explorer tools to see which symbols are available but nothing ever appears under the module I am targeting.
14 replies