Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

> Minimal GUI app in Linux, 972 bytes only

views
     
TSFlierMate1
post Jun 23 2022, 02:27 PM, updated 2d ago

Getting Started
**
Junior Member
58 posts

Joined: Jun 2022
A Russian coder managed to create simple GUI app in Linux using pure Assembly (without the need for linking object file) in just 972 bytes! Terrific.

This is the GUI app (empty window):
user posted image

This app has string table defined as:
CODE

STRING_TABLE:                   db 0
str@libX11.so.6                 db 'libX11.so.6',0
str@XMapRaised                  db 'XMapRaised',0
str@XCreateSimpleWindow         db 'XCreateSimpleWindow',0
str@XNextEvent                  db 'XNextEvent',0
str@XSelectInput                db 'XSelectInput',0
str@XOpenDisplay                db 'XOpenDisplay',0


It connects to X Server.

Command-line to compile GUI.asm and the terminal message after running it.
user posted image


Attached File(s)
Attached File  gui.txt ( 3.66k ) Number of downloads: 8
TSFlierMate1
post Jun 23 2022, 04:55 PM

Getting Started
**
Junior Member
58 posts

Joined: Jun 2022
Xlib - C Language X Interface
https://www.x.org/releases/X11R7.7/doc/libX...X11/libX11.html

user posted image
TSFlierMate1
post Jun 28 2022, 05:13 PM

Getting Started
**
Junior Member
58 posts

Joined: Jun 2022
I ported my cpuname.asm to guicpuid.asm, so that now it can displays processor name in a windowed application, instead of in terminal window. biggrin.gif

The full source (compile with FASM) and Linux x64 app is attached in the guicpuid.zip file below, feel free to download and try.

You can change the source code to display anything you want, all in a windowed application.

user posted image

To run the application, just double-click "guicpuid" icon.

Maybe also need to enable "Execute" permission:
user posted image

Then, double-click the blue icon:
user posted image

This post has been edited by FlierMate1: Jun 28 2022, 08:35 PM


Attached File(s)
Attached File  guicpuid.zip ( 2.49k ) Number of downloads: 0

 

Change to:
| Lo-Fi Version
0.1674sec    0.42    6 queries    GZIP Disabled
Time is now: 30th June 2022 - 02:35 PM