flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Unix > fasmg on MacOSX

Author
Thread Post new topic Reply to topic
jacobly



Joined: 04 Feb 2016
Posts: 26
fasmg on MacOSX
Someone asked for a mac version of fasmg, so I did pretty much the same thing that was done for fasm:

Code:

patch -p0 <macosx.patch
chmod +x ./fasmg
./fasmg source/libc/fasmg.asm fasmg.elf
objconv -fmacho32 -nu fasmg.elf fasmg.o
gcc -m32 -Wl,-no_pie fasmg.o -o fasmg



I also wrote a completely automated script for Travis CI.


Description: MacOSX executable and patch
Download
Filename: fasmg-macosx.zip
Filesize: 30.48 KB
Downloaded: 53 Time(s)

Post 27 Jul 2017, 02:23
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6673
Location: Kraków, Poland
Thank you for your help! I still plan to write the Mach-O macros for fasmg, then we could be able to skip the OBJCONV step, or even GCC altogether.
Post 27 Jul 2017, 09:28
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6673
Location: Kraków, Poland
The latest versions of fasmg package include a native port of fasmg to MacOS, based on the macros I wrote for the creation of Mach-O executables and objects.

I would be grateful for some tests and hopefully confirmation that this port works correctly on actual MacOS machines. If anyone has access to such computers, preferably with various versions of MacOS, please give it a try.
Post 29 Aug 2017, 12:13
View user's profile Send private message Visit poster's website Reply with quote
jacobly



Joined: 04 Feb 2016
Posts: 26
Works fine on osx10.11 in Travis CI, and all my ez80 tests pass.
Post 02 Oct 2017, 08:07
View user's profile Send private message Reply with quote
Enko



Joined: 03 Apr 2007
Posts: 668
Location: Mar del Plata
Tried on macOS 10.12.5, works with no issues.
I was able to assemble successfully fasmg.asm using fasmg binary provided (renamed it first)
And with the new binary, compiled successfully the source again.
4 passes, 9.2 seconds, 57678 bytes
Post 02 Oct 2017, 14:54
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6673
Location: Kraków, Poland

Enko wrote:
I was able to assemble successfully fasmg.asm using fasmg binary provided (renamed it first)

Should I give it a specific extension when packaging?
Post 02 Oct 2017, 15:01
View user's profile Send private message Visit poster's website Reply with quote
Enko



Joined: 03 Apr 2007
Posts: 668
Location: Mar del Plata

Tomasz Grysztar wrote:
Should I give it a specific extension when packaging?



I don't think so. it worked just fine out of the box.
MacOs of course protested saying that the app was not by a signed developer bla bla bla xD (quit common) After giving the permision to be executed it worked just fine.

I renamed it before assembling just so that the new binary generated from fasmg.asm wouldn't override the original one.
For the new one generated I did have to chown executable permissions but I suspect its standard procedure.

ps: I used the binary located in fasmg/source/macos/fasmg and the source in the same folder.
Post 02 Oct 2017, 15:10
View user's profile Send private message Reply with quote
jacobly



Joined: 04 Feb 2016
Posts: 26
Also confirmed to self compile to an identical file and pass ez80 tests by someone else in 10.13.
Post 02 Oct 2017, 18:55
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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.