filenames - Is there a compact name mangling usable for file name generation? -
i have project wanting generate code similar c++ templates, want generate each instance separate file. using c++ standard name mangling system, keep running 255 character limit path length. wondering if knows of particularly compact name mangling scheme types can avoid work of generating 1 of own.
to put way: c++ name mangling maps each type unique name. wanted use unique names file names. names commonly long file names. try sort of bit-packing on different characters used in c++ name mangling, first attempt generated names used characters illegal in file names and, later realized, wasn't guaranteed provide unique names.
trying hash resulting mangled name raises specter of name collision. want avoid that. i'd given data type yields unique name, when have include in name multiple nested anonymous structs or multidimensional array elements.
my hope else had run similar problem of trying save files based on data types, whether in c++ or in other language, such borrow scheme producing these names.
Comments
Post a Comment