flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2, 3, 4, 5 Next |
Author |
|
vid
Doesn't the term "managed" mean code runs under some sort of virtual machine, like here ?
|
|||
![]() |
|
comrade
vid wrote: Sorry, there is no 64-bit version of this code, and rewriting it would be a HUUUGE project. What do you need it for anyway? (AFAIK all systems that run 64-bit PE DLLs also support 32-bit code) 64-bit windows can run legacy x86 apps, but you can never mix and match 32-bit and 64-bit modules in the same process. vid wrote: Doesn't the term "managed" mean code runs under some sort of virtual machine, like here ? Managed code is practically more of MSFT's term for .NET code. Since it is jitted and is ultimately run as native code, it can certainly interact with native code in DLLs inside the same process. Afaik with latest VS, you can target x86 and x64 even for .NET apps. Whatever the native target is, they have to match any native DLLs you are interop'ing with. |
|||
![]() |
|
Azu
comrade wrote:
You can even do it on a 32bit OS, with the help of a kernel mode driver. comrade wrote:
|
|||
![]() |
|
Tomasz Grysztar
I have uploaded the new version of DLL, which works with the latest 1.69 cores. And it comes pre-assembled with 1.69.18 core, so you can use it to assemble AVX code.
There is no .fas-generating functionality available through the DLL API. If there is a demand for such feature I think I may in future expand the FASM_STATE structure to contain the pointers to various .fas blocks (just like the offset in the .fas header, but they would be a pointers to memory). |
|||
![]() |
|
edemko
|
|||
![]() |
|
master92
Wow, thx.
My latest post was one year ago and I didn't think I'd get an answer after a few weeks. And now, one year later... If the board didn't bring it to mind via e-mail, I probably wouldn't have noticed it ![]() Thank you for your work, Thomasz. Probably I'll resume my old project using FASM one day ;D |
|||
![]() |
|
Abyx
Tomasz Grysztar, would you make fasm_Assemble stdcall? It doesn't preserve registers, so it's impossible to call it from HLL without an assembly wrapper.
The patch is Code: --- /fasm/SOURCE/DLL/old_FASM.ASM !@ >:B 27 21:12:49 2010 +++ /fasm/SOURCE/DLL/FASM.ASM !@ >:B 27 22:03:58 2010 @@ -95,7 +95,7 @@ mov eax,[hDisplayPipe] mov [display_pipe],eax - push ebp + push ebp ebx esi edi mov eax,esp mov [esp_save],eax and eax,not 0FFFh @@ -111,8 +111,8 @@ mov [ebx+FASM_STATE.condition],FASM_OK done: - pop ebp mov eax,[ebx+FASM_STATE.condition] + pop edi esi ebx ebp ret 20 general_error: Patched fasm.asm (for fasm.dll) in attach.
|
|||||||||||
![]() |
|
Tomasz Grysztar
Oh, yes, sorry for that bug, I forgot.
I updated the attachment in first post. |
|||
![]() |
|
Abyx
Thanks
|
|||
![]() |
|
ishkabible
could this be use with c and c++ to do some JIT compiling? or am i misunderstanding how it works. dose it compile the file in memory so that you can save it to an executable or dose it actually load the program so that it can be run?
|
|||
![]() |
|
masonswanson
you could use it from any hll which supports c calling conventions and dlls, it can take a null terminated string containing assembly and produce machine code using Assemble(char *) or it can assemble an indicated assembly file using Assemble_File(File)
|
|||
![]() |
|
ptr51
Hello!
Im trying to bould the fasm.dll as a MS COFF file instead to link it statically. But my asm is sort of at a less advanced level so i cant really figure out why it crashes in runtime inside fasm_Assemble. Anyone here managed to build it as an obj? Any help would be greatly appreciated. Test code: compiled with /link FASM.OBJ Code: extern "C" unsigned int fasm_Assemble(char * szSource, unsigned char * lpMemory, int nSize, int nPassesLimit); int main(int argc, char* argv[]) { unsigned char buf[4096]; fasm_Assemble("mov eax, eax", buf, 4096, 100); return 0; } unified diff on how to mod FASM.ASM to make it compile is attached. (dont know if i got it right though)
|
||||||||||||||||||||
![]() |
|
masonswanson
How Would I Turn This Into A Linux Shared Object File? (.so)
|
|||
![]() |
|
masonswanson
For Some Reason I Can No Longer Access The Zip File In The First Post, Perhaps It Has Been Corrupted?
|
|||
![]() |
|
shutdownall
I can open it with no problems at all.
![]() |
|||
![]() |
|
masonswanson
Yes well now i can, before the download was only 14Kb, i don't know what happened but it's seems fine now
|
|||
![]() |
|
kalambong
Tomasz Grysztar wrote: The subject says all. Tomasz, Is 1.69.50 available as a DLL ? |
|||
![]() |
|
Tomasz Grysztar
Uploaded it now.
|
|||
![]() |
|
kalambong
Tomasz Grysztar wrote: Uploaded it now. Thank you very much, Tomasz !! ![]() |
|||
![]() |
|
Goto page Previous 1, 2, 3, 4, 5 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.