Visual Studio 2008
-
- Member
- Posts: 76
- Joined: Mon Aug 18, 2008 6:17 am
Re: Visual Studio 2008
What about FASM?
Re: Visual Studio 2008
From my experience, FASM integrates not so well with the VS IDE. For example, VS expects a certain format of the error messages if you want to editor window to highlight the offending source code line, and FASM doesn't play well with this (I don't know how NASM performs in this field). What is worse however, in my opinion, that FASM used to give up after the first error in the source code. Which is inconvenient if you make a typo and copy-and-paste it all over your source. I don't know if more recent versions behave differently. All in all, FASM still can be used with VS (use a custom rules file to override which assembler gets invoked for the .asm extension), but expect some minor setbacks.InsightSoft wrote:What about FASM?
I learned assembly way back when TASM was the most widespread assembler, and even MASM had a 'TASM-compatible execution' option. Both of these assemblers had a fairly nice support of structures (although with a slightly different syntax), but macros were a bit tricky. FASM and NASM, in my experience, focus more on the macros and less on the structures, and since I use lots of structures but almost no macros in my bootloader and kernel (for interoperability with C), this soon became an issue, and that's why I sticked with MASM.
-
- Member
- Posts: 2566
- Joined: Sun Jan 14, 2007 9:15 pm
- Libera.chat IRC: miselin
- Location: Sydney, Australia (I come from a land down under!)
- Contact:
Re: Visual Studio 2008
I wrote a shell script to run a Makefile and pipe the output into sed, which reformatted the error message into the format VS expects.For example, VS expects a certain format of the error messages if you want to editor window to highlight the offending source code line, and FASM doesn't play well with this (I don't know how NASM performs in this field).
Of course, you'd need Cygwin with it's bin directory in your PATH, but it works.
-
- Member
- Posts: 76
- Joined: Mon Aug 18, 2008 6:17 am
Re: Visual Studio 2008
Im reading transversally the FASM and Im impressed! it has a very nice syntax implementation... (similar to MASM)...
huuf it has been a long week!...
huuf it has been a long week!...
Re: Visual Studio 2008
You could always go for YASM. It's meant to support the NASM as well as the GAS syntax and it has downloadable rules for Visual Studio that readily allows you to use it in VC++.
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.
-
- Member
- Posts: 153
- Joined: Sun Jan 07, 2007 9:40 am
- Contact:
Re: Visual Studio 2008
VS has custom build rules that integrate quite well. Right click a project in the project explorer->Custom build rules... You can setup nearly any compiler/assembler/linker to work natively. You can create custom options dialog boxes to pass specific command line options to various tools just as you can configure the built in tools. I have custom build rules for Watcom, DigitalMars, NASM, TASM, FASM, etc. You dont need a makefile project and you dont need to use the external tools menu.