Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle multidispatch in the StaticCompiler #162

Open
kylincaster opened this issue May 20, 2024 · 1 comment
Open

How to handle multidispatch in the StaticCompiler #162

kylincaster opened this issue May 20, 2024 · 1 comment

Comments

@kylincaster
Copy link

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

@minecraft2048
Copy link

Upstream GPUCompiler supports some some sort of Itanium ABI name mangling: https://github.com/JuliaGPU/GPUCompiler.jl/blob/master/src/mangling.jl
JuliaGPU/GPUCompiler.jl#632

It will be nice if we can set StaticCompiler existing mangler to GPUCompiler mangler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants