Xavier Maillard
2019-12-01 22:55:06 UTC
Heya,
I wrote a fibonacci program in x86_64.
My code uses a call to libc printf function (just to test hwo that works).
I assebled it with nasm and linked it using ld with '-lc' switch.
So far, so good.
I have an executable but, calling it right into the shell, it returns:
no such file or directory.
Just to show:
total 20
-rwxrwxrwx 1 xavier xavier 15216 Dec 1 06:47 fibo
-rw-rw-rw- 1 xavier xavier 2304 Dec 1 06:47 fibo.o
-rw-rw-rw- 1 xavier xavier 353 Nov 29 13:11 fibo.s
-rw-rw-rw- 1 xavier xavier 513 Dec 1 06:44 Makefile
when calling it, I am in ~/devel/asm/fibo directory and I am calling it with:
::> ./fibo
zsh:1: no such file or directory: ./fibo
Is there something wrong here (again) ? :)
I wrote a fibonacci program in x86_64.
My code uses a call to libc printf function (just to test hwo that works).
I assebled it with nasm and linked it using ld with '-lc' switch.
So far, so good.
I have an executable but, calling it right into the shell, it returns:
no such file or directory.
Just to show:
total 20
-rwxrwxrwx 1 xavier xavier 15216 Dec 1 06:47 fibo
-rw-rw-rw- 1 xavier xavier 2304 Dec 1 06:47 fibo.o
-rw-rw-rw- 1 xavier xavier 353 Nov 29 13:11 fibo.s
-rw-rw-rw- 1 xavier xavier 513 Dec 1 06:44 Makefile
when calling it, I am in ~/devel/asm/fibo directory and I am calling it with:
::> ./fibo
zsh:1: no such file or directory: ./fibo
Is there something wrong here (again) ? :)
--
- xma
GPG: BA4909B7 8F04DE1B
- xma
GPG: BA4909B7 8F04DE1B