Author Topic: Assembling to memory.  (Read 281 times)

xanatose

  • Member
  • ***
  • Posts: 397
Assembling to memory.
« on: May 01, 2020, 09:47:31 AM »
Is there any assembler that can assemble to memory and then run the code from it?

I have this OpenGL application that gets a time series and procees it. I want to write a function in assembly and edit it. while looking at the result.  Then continue the process until I get the result I want. Being able to assemble to memory would help me speed up the process. on finding an algorithm that works.

Vortex

  • Member
  • *****
  • Posts: 2245
Re: Assembling to memory.
« Reply #1 on: May 01, 2020, 07:12:42 PM »
Hello,

Tomasz Grysztar's project fasm as DLL :

Quote
I've made fasm into a simple DLL which allows to assemble just inside the memory. The package contains short documentation, demonstration program (which also uses flat editor in DLL form) and the SOURCE directory, which needs to be merged with SOURCE directory of standard fasm's distributions.

https://board.flatassembler.net/topic.php?t=6239

xanatose

  • Member
  • ***
  • Posts: 397
Re: Assembling to memory.
« Reply #2 on: May 03, 2020, 07:30:54 AM »
Thanks. Will check.

Vortex

  • Member
  • *****
  • Posts: 2245
Re: Assembling to memory.
« Reply #3 on: May 03, 2020, 08:56:59 PM »
This tool does compilation in memory ( I didn't test it  ) :

Quote
Introducing Oxygen Basic

Oxygen Basic (O2H) is a compiler assembler and linker, deployed in a single DLL that takes source code strings and creates executable binary in memory. This implementation can be embedded in any application to provide high performance programmability. The compiler can also generate conventional 32/64 bit executables and dynamic link libraries.

https://www.oxygenbasic.org/