I am working on a project that would transform the vb6 code into an asm code and thus call an asm compiler (NASM, GOASM, etc) and generate the executable, I already have enough material and I already have some code done. I already have rudimentary IDE, a module that transforms basic into a sequence of "simple commands" to better transform into assembler and I'm working on generating asm code from these "simple commands".
What do you think ?
Could someone help with some material / work?
All constructive information will be welcome.
so, what are the benefit with this asm compiler?
i can get, that we have both vb6 and asm in-one, The trick did something if i remember correctly for the purpose, but you mean convert vb6 to asm. for what end?
He wrote that already: "...and thus call an asm compiler (NASM, GOASM, etc) and generate the executable..."
@germano
Personally I think, that it's a better idea, to emit C-Code instead of ASM.
There is two existing basic-compilers I know, which started out with an ASM-emitter.
- O2Basic: (where attempts were made, to switch to a C-Emitter later - though then the efforts were cancelled due to "too much work")
- FreeBasic: (where a later switch to a C-emitter succeeded, though not without causing huge efforts on the side of the developers)
So (IMO) - it'd be a better idea, to plan for (and implement) emitting C-Code "right from the start"...
This has a lot of advantages, since C-Compilers (which then take over for the final compile-step) have built-in optimizers -
and are also able to translate to Assembly-instructions for a whole range of CPU-architectures.
I am working on a project that would transform the vb6 code into an asm code and thus call an asm compiler (NASM, GOASM, etc) and generate the executable
Very interesting
Originally Posted by germano.barbosa
What do you think ?
This is a gr8 way to break out of M$ design constraints and now .NET stuff up
Did you really have it write it out to the C:\ ? yeah... I don't think Windows is going to allow that ... try writing it out to a folder somewhere ... your desktop even... or just anywhere anywhere esle other than Windows or your C root ... and try it again... There's some folders that Windows locks down to prevent damage to itself and prevent viruses from running ... C:\ proper is one area where it gets touchy.
Did you really have it write it out to the C:\ ? yeah... I don't think Windows is going to allow that ... try writing it out to a folder somewhere ... your desktop even... or just anywhere anywhere esle other than Windows or your C root ... and try it again... There's some folders that Windows locks down to prevent damage to itself and prevent viruses from running ... C:\ proper is one area where it gets touchy.
-tg
I will try that but it has no trouble writing the .obj files and the resulting exe.
C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter
There's just no reason to use garbage like InputBox. - jmcilhinney
The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber
Naw... I think he's reluctant to post the code because he plans to sell it commercially ... if he posts it here, then anyone would be able to swipe it, and he'd lose out on all da big buck$.
When I was employed I had no remorse posting code produced by me during my day job in anonymous forums.
I get the impression he means that he can't just post his entire commercial project online just like that. I'd recommend he produces a sample of code that just illustrates his problem and nothing more. He can upload just that which is what I think the trick was getting at.
C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter
There's just no reason to use garbage like InputBox. - jmcilhinney
The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber
I get the impression he means that he can't just post his entire commercial project online just like that. I'd recommend he produces a sample of code that just illustrates his problem and nothing more. He can upload just that which is what I think the trick was getting at.
I though he already had a small test project. Why would you want a huge ASM listing of a (moderately sized) commercial project?
C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter
There's just no reason to use garbage like InputBox. - jmcilhinney
The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber
When I was employed I had no remorse posting code produced by me during my day job in anonymous forums.
If the poster is the code owner, then OK. If the poster isn't the code owner then permission from the code owner is required - otherwise you're in breach. If you are employed by a company, your employment contract is likely to stipulate that the company owns what you produce - not you (and if it doesn't then it should). If you're a contractor this should be specified as part of the contract. In the absence of anything, the normal/usual is that the coder owns what they code (although different countries etc may have local variations).
All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/
Yea, I thought so too but his statement implied otherwise.
I will post a sample project that gives me the error later today. Its probably some obscure issue to do with my machine.
The project in question is reasonably large at 170k lines and is the backbone of what we do as a business.
Why do I want to see the listing? A) To see these C2Switches actually work. B) To learn. C) as a way in future to see what code the compiler is actually generating to assist with optimization.