Author Topic: ASM source code project  (Read 2925 times)

Jeffxo

  • Guest
ASM source code project
« on: February 16, 2023, 11:00:34 am »
Hello,

I have created a simple project with a one asm file. Once created, and after modifying compiler options for "asm" extension, I can build my asm file with no problems. After compilation (with "nasm -f elf64 -F dward") I get ".o" file. Now, I need to build project to generate binary file... but it seems CodeBlocks need a GCC compiler (or similar), so if I build my project directly, building execution is "g++ obj/Debug/my_file.o -o bin/Debug/my_file" and it finishes with errors. However, from the command line, if I run "ld -o bin/Debug/my_file obj/Debug/my_file.o", I get binary file with no errors... but I can't add this file to my project and, then, run "Debugger".

Help, please!
Thanks a lot!

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1628
Re: ASM source code project
« Reply #1 on: February 16, 2023, 11:06:20 am »
Copy the GCC compiler (or any more suitable) and modify the executables to suit your needs. There is also an "Advanced options" button for finer settings.