flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2, 3, 4, 5 Next |
Author |
|
vid 28 Apr 2009, 22:17
Doesn't the term "managed" mean code runs under some sort of virtual machine, like here ?
|
|||
![]() |
|
comrade 30 Apr 2009, 03:57
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 19 Aug 2009, 09:56
comrade wrote:
You can even do it on a 32bit OS, with the help of a kernel mode driver. comrade wrote:
|
|||
![]() |
|
Tomasz Grysztar 04 Sep 2010, 17:03
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 04 Sep 2010, 19:15
|
|||
![]() |
|
master92 04 Sep 2010, 19:45
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 27 Oct 2010, 19:49
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 27 Oct 2010, 19:57
Oh, yes, sorry for that bug, I forgot.
I updated the attachment in first post. |
|||
![]() |
|
Abyx 28 Oct 2010, 06:02
Thanks
|
|||
![]() |
|
ishkabible 04 Nov 2010, 21:00
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 03 Dec 2010, 13:27
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 22 Dec 2010, 14:42
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 10 Apr 2011, 05:58
How Would I Turn This Into A Linux Shared Object File? (.so)
|
|||
![]() |
|
masonswanson 20 Feb 2012, 03:05
For Some Reason I Can No Longer Access The Zip File In The First Post, Perhaps It Has Been Corrupted?
|
|||
![]() |
|
shutdownall 21 Feb 2012, 22:39
I can open it with no problems at all.
![]() |
|||
![]() |
|
masonswanson 25 Feb 2012, 07:24
Yes well now i can, before the download was only 14Kb, i don't know what happened but it's seems fine now
|
|||
![]() |
|
kalambong 06 Apr 2012, 08:48
Tomasz Grysztar wrote: The subject says all. Tomasz, Is 1.69.50 available as a DLL ? |
|||
![]() |
|
Tomasz Grysztar 06 Apr 2012, 09:16
Uploaded it now.
|
|||
![]() |
|
kalambong 08 Apr 2012, 01:19
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-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.