You should be seeing an error message for gfortran
f951: Fatal Error: Maximum supported identifier length is 63
instead of truncating the names, substitution with abbreviated names via actual file edits
or (if case is used consistently) using pre-processor directives might be an alternative?
#define VERY_LONG_VARIABLE_NAME SHORT_NAME
or carefully making sure nothing is changed you can use things like
sed -i -e 's/\<LONG_VARIABLE_NAME\>/SHORTNM/g' FILENAMES
to replace specific names in files or abbreviate things like
I appreciate that, but I am dealing with most likely tens of thousands of lines of code at the end of this so I am taking an alternative route and using static objects.
It appears GCC did not expect anyone to use their program for Vulkan so I understand this.
Because the procedure name for the linker would be some_module_name.some_module_name_submodule_name_MP_some_procedure_name_.
ifort issued only warnings, because it could solve the issue by chopping characters from the beginning of the identifier. But I decided it was better to just use the sm_ prefix convention as in
I totally understand that when Fortran was still on punch cards. But this is binding to the next version of OpenGL in modern Fortran, which will compile with no problems in the GCC C compiler. Edit: Conveyance of joking direct thought comes across as angry/aggressive in plain text so it’s removed.
That naming convention seems useful, but I am attempting to make it so you can utilize the existing Khronos documentation to program with this. Having to translate through that would be quite the nightmare.
This one made me laugh and thinking… who’s gonna write the code generation code itself? Humans, or another generated code? Seems like a never ending loop
If I’m not mistaken, this limitation to 63 characters is speficied in section 6.2.2 of the 2023 standard. This standard increases the maximum line length and statement length to “support programs that are constructed mechanically” as noted by John Reid in his digest.
Following this logic, the length limit on names could have been increased too.
Maybe it will be increased if enough people suggests it with use cases and such, but I just noticed that a document in the J3 page has “2028” instead of “202y”, so I guess it’ll be at least another 4 years before the next standard.