News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Assembler languages for Linux

Started by shankle, February 14, 2016, 01:46:33 AM

Previous topic - Next topic

Magnum

I tried Sol Asm, but the examples were only programs that output text.

I am still looking for Linux programs that produce GUI programs. :-)

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

anta40

Quote from: Magnum on February 18, 2016, 04:07:41 PM
I am still looking for Linux programs that produce GUI programs. :-)

You might want to try these examples...

GoneFishing

#17
Here are those examples translated to JWASM
NOTE: samples were linked against  GTK 2. 24

GTK source code comes with nice set of examples.

jcfuller

GoneFishing,
Thanks for the gtk examples.
First attempt on Ubuntu MATE:
  The gtk_button example seg faults on closing.
To correct it I replaced the DeleteEvent with the one from gtk_combo.

I have not done much else but it appears the examples need a little tweaking ?

James

GoneFishing

#19
Hi James,
gtk_button example ( and all the rest ) works fine here on Ubuntu 14.04
Tweak it as you like as I don't know why it doesn't work on your machine ( if you know it, please tell me )

[EDIT] Well, looks like I commented out
Quote;  sub rsp,16
Thanks for noticing  :t

[EDIT] fixed version attached

shankle

For what it's worth I settled on NASM.
From the little I know so far, it seems that it is a function (macro) driven 
assembler. For ex: to put a point on the screen you call the gotoxy function.
There must be hundreds of these macros. I would guess 1 for each
corresponding windows api. Lord what a year this will be :dazzled:
Good Bye Microsoft!

jcfuller

No go.
Still a seg fault when window closes with gtk_button when run from terminal.
Ubuntu MATE 15.10
All gtk dev files from the repository.

James

GoneFishing

Hmm,  it must be something wrong with stack ..
Does it show message "closing application..." ?
Did you try to re-compile it from source code ?
What's about other examples?

Maybe version thing . I used GTK 2.24
Your distro seems using  GTK 3.4

Magnum

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

GoneFishing

#24
Quote from: jcfuller on February 18, 2016, 09:25:27 PM
...
  The gtk_button example seg faults on closing.
To correct it I replaced the DeleteEvent with the one from gtk_combo.
...
Oh, after visiting dentist I was a little bit nervous and didn't notice that in gtk_combo :
Quotesub rsp,8
applied it now to gtk-button
attach updated, fingers crossed
I'm surprised how tolerant my os is - it's eagerly satisfied with  all 3 variants:
Quote
; sub rsp, 16
sub rsp, 16
sub rsp,8

P.S.: Personally I prefer LTS  (Long Time Support) Ubuntu distros  - they have *.04 in version number

jcfuller


gtk_handlebox and gtk_checkmenu seg fault on execution

window.asm will not compile
HJWasm v2.13, Jan 30 2016, Masm-compatible assembler.
Portions Copyright (c) 1992-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
window.asm : Error A2168: General Failure

All others ok

GTK+ version: 2.24.28

James

GoneFishing

#26
Thanks James
I get this warning from GTK running gtk_handlebox and gtk_checkmenu:
Quote(gtk_handlebox:2003): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'detailed_signal != NULL' failed
Do you get SEGFAULT or this warning?
I used JWASM 2.11 when I  translated these examples more than year ago  ... so am using  it now 

[EDIT] Tomorrow I'll upload special versions of gtk_handlebox and gtk_checkmenu examples with checkpoints after each call . It'll save our time and  show where exactly the crash happens

jcfuller

No warning on compile. Seg fault on running.

James

GoneFishing

Ok, thanks
PLease, re-read my previous msg - it was updated

jcfuller

Just a FYI.
  I have no experience with 64bit assembler.
I did a little Linux 32bit jwasm testing with gtk eons ago :)
I want to get at least a basic understanding of the 64bit implementation.
My interest is sparked because I am working on a new cross platform Basic -> c/c++ translator with Glib/Gtk as the base.
I have run into many inconsistencies with the Gtk2/3 platforms on both Linux and Windows.
I have spent many hours with the assorted documentation scattered around the internet, but my old brain ......

You might want to revise your demos to not use depreciated gtk functions.
It took zetcode (http://zetcode.com/gui/gtk2/) until this past July to update their offerings.

Looking forward to more info.

Am I correct there is not a working INVOKE for 64bit (Windows or Linux)?

James