MASM
BlitzMax Forums/BlitzMax Programming/MASM
| ||
Has anyone got BlitzMax to work with Masm instead of Fasm or perhaps does anyone know if it would be possible? Thanks |
| ||
Doh, really didn't though that! Maybe you can try, I'm encouraging you to test and report result here. |
| ||
I suspect BlitzMax specifically looks for FASM, so I doubt it - unless you want to edit the MaxIDE source code to force it to look for something else. Why would you want to use a different assembler - surely the same source code will produce the same EXE? |
| ||
Couldn't you just run the .o file through Masm? I thought that the .o file is just a .asm file. |
| ||
Couldn't you just run the .o file through Masm? I thought that the .o file is just a .asm file. I believe the .o files are assembled already. They're object code. I think the .s files are assembly language though. Absolutely no clue how much work it would be to get them to assemble in anything other than FASM though. |
| ||
Cant you just assemble it on its own and use the object file instead? |
| ||
Well... are you trying to compile the .s files with MASM so you can then link with Microsoft Visual Studio .libs instead of GCC ones? Haven't tried it, but I think that if you want to do that you should do the process manually. Compile the .s files using MASM yourself, and then link using Microsoft linker tools. The only way yot automate the process would be to create a set of executables with the same name as the GCC ones that BlitzMax uses that call the real Microsoft tools and produce the appropiate output. You will also have to recompile all modules so Microsoft-compliant libraries are generated. If you have success with it, please let us know :) |
| ||
@Jedive Yeah I thought I mite have to do that. I think I'll give it a go after me and altitudems get this physics library up and going. I was just enquiring because I have loads of books on MASM and im not sure of the syntactical differenced between it and FASM. Also as a side not, in another thread (Function Ptr) I asked if you could invoke a byte array as a function and we found that it was possible. I'v also goint to have a go at compiling MASM source as a DOS COM object and then loading this in the array and excecuting it. When I can figure out how BlitzMax handles function calls fully then I want to use this to load and excecute small scripts, compiled to MASM sorce. Could be kinda cool :) |
| ||
The only way yot automate the process would be to create a set of executables with the same name as the GCC ones that BlitzMax uses that call the real Microsoft tools and produce the appropiate output. No you don't. Just change BMK to use whatever tools you use in your build environment. The source is in /BlitzMax/src/bmk - knock yourself out. |
| ||
I didnt realise the source was included. Thanks, will check this out :) |