tshort / StaticCompiler.jl

Compiles Julia code to a standalone library (experimental)
Other
488 stars 31 forks source link

How to handle multidispatch in the StaticCompiler #162

Open kylincaster opened 1 month ago

kylincaster commented 1 month ago

Multidispatch is the core feature of Julia. Therefore, handling functions that use multidispatch is inevitable. Unfortunately, the current generate_obj function cannot handle multidispatch. The generated library resembles a C-like library rather than a C++-like one.

Therefore, I propose adding name mangling similar to the Itanium C++ ABI to support multiple function symbols in the object file. This task may be very difficult and would require an in-depth modification of StaticCompiler.

Thank you for any suggestions in advance.

Kylin