flat assembler
Message board for the users of flat assembler.

Index > Main > FASM and WINE

Author
Thread Post new topic Reply to topic
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz
Hey all, Is that possible to run FASM on WINE Emulator (Linux) ? I haven't tested just going to try later and if some of you tried, just let me know.. Smile
Post 04 May 2011, 14:39
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel
You probably can't run the command-line version. Perhaps Dosbox would be better for that. I believe the fasmw IDE should work. Though I haven't tried it.

But why do that when you can assemble Windows EXEs using a *nix fasm port (as long as you have the appropriate includes)?
Post 04 May 2011, 14:54
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17250
Location: In your JS exploiting you and your system
revolution
ManOfSteel wrote:
You probably can't run the command-line version.
There are two command line versions. One for DOS and one for Win32. Do you mean both or just the DOS version?
Post 04 May 2011, 15:04
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
FASMW works nicely
Post 04 May 2011, 15:37
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel
revolution wrote:
ManOfSteel wrote:
You probably can't run the command-line version.
There are two command line versions. One for DOS and one for Win32. Do you mean both or just the DOS version?

I was talking about the DOS version hence why I mentioned DOSBox. I don't know about the Windows version. I presume it can work, like fasmw.
Post 04 May 2011, 17:55
View user's profile Send private message Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz
I got it.. Thanks, I'll test things now there.. Smile
ManOfSteel
Actually I'm "noob" on linux.. I even don't know what *nix means.. I'll try things now.
Thanks for replies Wink
Post 04 May 2011, 19:13
View user's profile Send private message Reply with quote
mattst88



Joined: 12 May 2006
Posts: 260
Location: South Carolina
mattst88
Overflowz wrote:
I got it.. Thanks, I'll test things now there.. Smile
ManOfSteel
Actually I'm "noob" on linux.. I even don't know what *nix means.. I'll try things now.
Thanks for replies Wink


In that case, you don't want to use the DOS or Windows version, but the Linux (UNIX) version. Otherwise, programs you assemble will only run in WINE/DOSBox.

_________________
My x86 Instruction Reference -- includes SSE, SSE2, SSE3, SSSE3, SSE4 instructions.
Assembly Programmer's Journal
Post 04 May 2011, 21:13
View user's profile Send private message Visit poster's website Reply with quote
pabloreda



Joined: 24 Jan 2007
Posts: 99
Location: Argentina
pabloreda
I compile code to FASM backend in Win and a friend, who use linux to run, tell me work OK in WINE.
Post 04 May 2011, 21:15
View user's profile Send private message Visit poster's website Reply with quote
mattst88



Joined: 12 May 2006
Posts: 260
Location: South Carolina
mattst88
pabloreda wrote:
I compile code to FASM backend in Win and a friend, who use linux to run, tell me work OK in WINE.


If you're replying to me, then you missed my point.

If he wants native executables in Linux, he shouldn't use the Windows version of FASM in WINE to make them. Instead, he should use the native Linux version of FASM.

_________________
My x86 Instruction Reference -- includes SSE, SSE2, SSE3, SSSE3, SSE4 instructions.
Assembly Programmer's Journal
Post 04 May 2011, 21:36
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17250
Location: In your JS exploiting you and your system
revolution
mattst88 wrote:
Otherwise, programs you assemble will only run in WINE/DOSBox.
It makes no difference which version of fasm you use. All versions will assemble source code to the same binary output. The Win version can assemble for Linux and DOS, DOS version can assemble for Win and Linux, and Linux version can assemble for Win and DOS.
Post 04 May 2011, 22:46
View user's profile Send private message Visit poster's website Reply with quote
pabloreda



Joined: 24 Jan 2007
Posts: 99
Location: Argentina
pabloreda
@mattst: sorry for my english, not my native language.

I have a very simple framework for compiling from r4 to asm, this framework use some API call to windows, in some day I do this framework for linux too but for now only I have the win version, then I compile for win with FASM and generate the EXE. My friend use r4 in linux (WINE) and compile this EXE in linux, with WINE, and work ok.
Post 05 May 2011, 13:52
View user's profile Send private message Visit poster's website Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz
I've tried to compile simple Hello World with MessageBox API and worked like a charm.. I wanted this because I switched to Linux system (don't know why..) and just trying all things what is possible there ))
Post 05 May 2011, 17:00
View user's profile Send private message Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler
MessageBox() is part of the WinAPI. If you want to program for Linux,(ie "try things that are possible there") you'll want to learn a GUI toolkit's API (there are many). I suggest Gtk or a variant.
Post 05 May 2011, 19:51
View user's profile Send private message Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz
Tyler
I should return to Windows I guess or learn linux from 0. Thanks for suggestion Smile
Post 05 May 2011, 22:52
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.