flat assembler
Message board for the users of flat assembler.
Index
> Main > Too long symbols |
Author |
|
vid 25 Jan 2006, 13:46
why don't you import it under shorter name?
Or what are you going to do with such long symbols? |
|||
25 Jan 2006, 13:46 |
|
Tomasz Grysztar 25 Jan 2006, 13:49
This is about the only one limitation in fasm that is so deeply buried in internals that would require massive rewrite to extend it.
However I don't think this is really a problem - when you need to access the external symbols of longer names, or make some symbols public and give them longer names, you can use the extended EXTRN/PUBLIC syntaxes, like: Code:
extrn '?_Isnil@?$_Tree@V?$_Tset_traits@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@$0A@@std@@@std@@KAAADPAU_Node@?$_Tree_nod@V?$_Tset_traits@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@$0A@@std@@@2@@Z' as SomeMoreFriendlyName (scroll right to read the ending of the line ) and access that symbol inside the assembly source under SomeMoreFriendlyName. More information on EXTRN/PUBLIC in section 2.4.3 of manual. |
|||
25 Jan 2006, 13:49 |
|
hg 25 Jan 2006, 13:54
vid wrote: why don't you import it under shorter name? I'm trying to build a re-assembler tool. The idea is to process exising ms coff files to generate a asm file. This asm file must be compilable and link against existing object files produced by VC++ compiler. I was targeting Masm at first which has the same symbol size limitation but due to lots of problems with masm I am retrying to retarget my output code for fasm instead. In short I'm trying to build a tool which will generate the same type of code as VC++ compiler. I'm both importing and exporting symbols. I am not sure if it will work with aliases since it's still something that has to interface the real world. -- Henrik |
|||
25 Jan 2006, 13:54 |
|
hg 25 Jan 2006, 13:56
Thanks for the quick reply. I'll give it a try and see how far I get.
-- Henrik |
|||
25 Jan 2006, 13:56 |
|
vid 25 Jan 2006, 14:20
Tomasz Grysztar wrote: This is about the only one limitation in fasm that is so deeply buried in internals that would require massive rewrite to extend it. You use strings with byte-size (semi-pascal style)? |
|||
25 Jan 2006, 14:20 |
|
Tomasz Grysztar 25 Jan 2006, 14:42
It's the limitation in preprocessor's source encoding scheme - it's already documented in guide to fasm's internals (it still lies here somewhere).
[EDIT]"Somewhere" means here: http://board.flatassembler.net/topic.php?t=3883 [/EDIT] |
|||
25 Jan 2006, 14:42 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.