splat icon indicating copy to clipboard operation
splat copied to clipboard

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

Open weirdbeardgame opened this issue 1 year ago • 1 comments

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

weirdbeardgame avatar Jul 10 '24 05:07 weirdbeardgame

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

ethteck avatar Jul 10 '24 05:07 ethteck