Tag Archives: NASM

HOWTO integrate NASM with VS2022

updated 01/11/2024 Occasionally I use Intel assembler language to squeeze processing power from my programs. A cheap solution was C inline assembler sections, but VS2022 doesn’t support them in a 64-bits program.  Other compilers use more or less complex solutions (IBM assembler, …). This forced me to consider including and linking .asm files in my projects.  I can split them with 32 and 64 bits … Continue reading HOWTO integrate NASM with VS2022 »

HOWTO use NASM function for Windows 64-bits

Writing 64-bits assembler functions for Windows is quite different from the ones written for Linux or even for Windows 32 bits. Even when using NASM for a simplified approach, you shall care about a few details. First steps The first step is to add the following lines at the very beginning of the .asm file: 64 bits default rel We need the ‘default rel’ to … Continue reading HOWTO use NASM function for Windows 64-bits »

HOWTO easily use NASM into windows C/C++ applications

After installed NASM and configured our VisualStudio to use it, we are now able to use it in our C/C++ projects. Assembler usually has a huge advantage in terms of performance at the cost of rigid code usage. You cannot use it in both 32-bits and 64-bits versions of the same C/C++ code.  Each version shall fulfill several different ‘environmental’ requirements that cannot be ignored … Continue reading HOWTO easily use NASM into windows C/C++ applications »