Recent Posts

Pages: [1] 2 3 ... 10
1
Example Code / Assembly x86_64 Linux Web API
« Last post by Rodrigo Robles on February 14, 2024, 04:14:51 AM »
I wrote a POC of a x86_64 Assembly Web API to test its viability, got carried away and ended up with five Assembly Web APIs testing different possible architectures.

This is probably the fastest Web API of the world.

I wrote a paper draft about this experiment: https://drive.google.com/uc?id=18fSnr4ZVtPJbnq9v8xogodC_jklb75xf&export=download

In the paper I explain in detail the architectures I tested:
1. asmapi-monoproc (single process): https://gitlab.com/RodrigoRobles/asmapi-monoproc
2. asmapi (multi process): https://gitlab.com/RodrigoRobles/asmapi
3. asmapi-threadpool: https://gitlab.com/RodrigoRobles/asmapi-threadpool
4. asmapi-threadpool-futex: https://gitlab.com/RodrigoRobles/asmapi-threadpool-futex
5. asmapi-lateaccept (thread pool w/ preforking): https://gitlab.com/RodrigoRobles/asmapi-lateaccept

The five APIs use a 0 dependency architecture, not depending on any external library, neither libc, only talking directly with the kernel.
2
Programming with NASM / Re: gdb and debug symbols
« Last post by Frank Kotler on February 04, 2024, 12:13:20 AM »
It may help to tell Nasm  "-F dwar"
Start your cide wuth a singke byte opcode  I like
"nop

st,
BeFrank

3
Other Discussion / Re: NASM or YASM in the modern era (or something else)
« Last post by Frank Kotler on February 03, 2024, 11:53:38 PM »
From what little I know of Yasm, it offers the option of AT$T syntax. if that's an advantagea.
Fasm is another nice assembler. Their forum might be more acive.
I don' thonk any of them will leave yo in the dark ages.

Best,
Franl

t
4
Other Discussion / Re: NASM or YASM in the modern era (or something else)
« Last post by debs3759 on February 03, 2024, 10:43:57 PM »
As far as I know, this is it. There are mailing lists, but they are dead.
5
Programming with NASM / gdb and debug symbols
« Last post by decuser on February 03, 2024, 10:25:11 PM »
nasm newb here...

I have started using nasm and I am trying to debug my program. I did nasm -g and ld -g and when I open gdb, or ddd, it shows my listing and will let me step through the code and whatnot, yay! However, when I try to display a variable's address using 'info address bVar1' it says:
Symbol "bVar1" is at 0x402000 in a file compiled without debugging.

What it means, as I understand it, is that the file was not compiled with gnu debugging symbols. Obviously, there are debugging symbols present, but they're in whatever the default format is for nasm. Should I be worried, or just ignore it?

FWIW, stuff like:

(gdb) x/db &bVar1

seems to work:

0x402000 <bVar1>:       17


Thx!
6
Other Discussion / Re: NASM or YASM in the modern era (or something else)
« Last post by decuser on February 03, 2024, 09:53:13 PM »
Cool. So, is there another chattier hangout for nasm users?
7
Other Discussion / Re: NASM or YASM in the modern era (or something else)
« Last post by debs3759 on February 03, 2024, 09:37:11 PM »
I don't know yasm, but I can tell you that nasm is constantly in development, with new instruction sets being added pretty much as soon as they are released. We have an Intel developer on the nasm dev team. The forums are not very active most of the time, but there are a couple of active Linux coders who will try to help when they can.
8
Other Discussion / NASM or YASM in the modern era (or something else)
« Last post by decuser on February 03, 2024, 08:58:28 PM »
Hi all,

Longtime listener, first time caller...

I'm learning assembly on my whiz-bang MX-Linux 23-2 "Libretto" machine w/Intel i7-3770. I have dabbled, but now I'm quite serious. As it turns out, there appear to be many choices as to what assembler to use. The text I've chosen to start with "x86-64 Assembly Language Programming with Ubuntu" by Ed Jorgensen, available at http://www.egr.unlv.edu/~ed/assembly64.pdf favors yasm and ddd as the toolchain. They work on MX-Linux and that's great, but I don't want to spend a lot of time with a toolchain that I may not settle on. So, before I go too far, I figure I'll ask the experts (y'all)...

Are either NASM or YASM good choices for the assembler, here in 2024, or should I be looking elsewhere? Are either or another actively developed/maintained? What resources do you recommend for the 2024 beginner/intermediate learner?

Thx!
9
Programming with NASM / Re: Linux 64bit / Threads
« Last post by andyz74 on January 30, 2024, 06:54:30 PM »
OK, so I will see, if I can get a working program of this. :-)

Thanks for the hint! :-)
10
Programming with NASM / Re: Linux 64bit / Threads
« Last post by fredericopissarra on January 26, 2024, 12:09:53 PM »
For a parent process to wait for a child one is a matter of using sys_wait4 syscall. You can retrieve the errorcode returned by the process (for example: 0 = prime, 1 = not prime)...
Pages: [1] 2 3 ... 10