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

Feature Request: Add option to avoid generating template function implementations in files #383

Open
weirdbeardgame opened this issue Jul 10, 2024 · 1 comment

Comments

@weirdbeardgame
Copy link

weirdbeardgame commented Jul 10, 2024

When a Generic Template is used on, Data Structures, Classes Functions etc. The compiler will auto-generate implementations for each type specified IE. Which have matching definitions acrossed several files, etc.

Now that Spimdisasm at least in the dev branch can detect symbol scope meaning symbols can be named the same, I'd like to request a feature that will prevent these implementations from being included as separate functions in these files given they all include the same header. They are simply using or calling the functions, data structures, etc.
Some References:
https://docs.oracle.com/cd/E19957-01/806-3572/Templates.html

https://stackoverflow.com/questions/19798325/how-does-the-compilation-of-templates-work

https://en.cppreference.com/w/cpp/language/templates

@ethteck
Copy link
Owner

ethteck commented Jul 10, 2024

To rephrase the request as I understand it, a way to tell splat to never emit include_asm for a symbol with a given name would address the concern I think.

I'm not sure how we would accomplish this though. Symbol_addrs is concerned with actual specific symbols, not all symbols that share the same name

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