I am trying to calculate factorial of 30 using x86_64 assembly on Linux. Here's my code:
```
.global _start
.text
_start:
mov %RCX, 1 # counter
mov %RAX, 1 # factorial result
loop:
mul %RCX
inc %RCX
cmp %RCX, n
jle loop
.data
n: .byte 30
```
I am converting it using these two commands:
```
as file.s
ldd file.s -o a
```
However when running the executable `a`, segmention fault is raised. checking with gdb it seems that it is raised right at the first instruction after `_start`. Where am I wrong?
#asm #assembly #x86 #x86_64 #linux #debugging #programming #segfault #segmention_fault
It has been a long time which there is a question in my mind. There are cheap #sbc s around. For huge computings on CPU, would many #ARM based single board computers like #Raspberry_pi or #nano_pi replace a single #Intel? If this is possible and considering that softwares are equally optimized on #x86 and ARM, the obvious advantage of a bunch of ARM tiny computers as a whole cluster over a single x86 would be that they consume much less power, thus they generate much less heat and hopefully longer product life. Also if any of them went down, your whole computing resource is still available but with a little less computing power. I have a NanoPi NEO and a 3rd gen Ci5 M series. But a piece of software is needed which could benchmark both my x86 and my ARM and on the compiler-level, is optimized equally for both.
Among the #GUI programs on my PC, I like my Terminal Emulator only. I have a slow HDD and whenever I want to open one of those GUI programs, they want to load soooo much from my Disk so they are much slower to load. Also when I don't use them for a while and their data on memory get placed in my swap space, having them back is again as slow as loading them almost. It seems that because computers have more and more memory, newer versions of programs want to waste more and more memory. #memory_waste #huge_memory_usage #linux #tech
Using E-paper displays on resource-constrained MCUs
https://bitbanksoftware.blogspot.com/2022/10/using-e-paper-displays-on-resource.html
September - This Month in #Minetest
This month, TurkeyMcMac joined the core dev team, post-processing and bloom were merged, and Android crosshair support was added. Minefall released on ContentDB, BlockExchange got a graphical rework, and more!
Latest Minetest CTF video from Farooq:
https://peertube.linuxrocks.online/w/aSoWCo4iCveFKQ2BvLf3KQ
How is my English accent?
#minetest #minetest_ctf #foss #foss_gaming #gaming #minecraft #pvp #minetest_pvp #poll
Hello all. I was thinking of a #static #RSS #aggregator. So that one(possibly myself) could create a unified #feed which is created by combining multiple RSS sources plus a good looking static HTML output. So that anyone could run such a thing only with static hostings which a lot of them are out there these days and a #CI #CD runner like #Github #Actions or the one #Gitlab has. I wanted to know if such a thing already exists. If not, I would be happy to create one myself with #Python or perhaps #Rust
Hello all. Do you any any #federated alternative to Github Gist?
#fediverse #snippet_sharing #snippet #code_sharing #code #snippet #programming #development #github #gitlab #gist
AntVenom, a #Minecraft YouTuber with over 3 million subs, has made a video about #Minetest. It's really well researched, and captures our spirit well
A week ago, people in #Sistan in south east of #iran were attacked with military weapons. Some videos were showing a military helicopter patroling around.
While till that day after about 2 weeks of #protests about 100 were killed, in a single day in #zahidan the biggest city of Sistan at least around 30 were killed including women and few children.
The next day #irib said they were terrorists attacking innocent people after the #friday_prayer
The #western_persian_medias such as #bbc said it was Iran's forces. However in the next days everyone forgot that and those medias put emphasize on #nika_shakarami and #mahsa_amini only.
People of Sistan are not only the poorest people in Iran but they are also alone and it seems the majority of Iranians don't care much about them.
I had written a new post in my website and I forgot to advertise it and tell other people about it.
https://far.chickenkiller.com/other/give-back-to-the-community/
#freesoftware #fsf #foss #free-software #community-driven #osi #opensource #opensource-software #libresoftware
I've got a new religious post on my website: https://far.chickenkiller.com/religion/origin-of-iron-on-earth/
BTW, I have added RSS button to my website ;)
Just use LibreJS(TM)
QT: https://social.tchncs.de/@thehackernews/107845909381524673
I think the main problem of free software not being good comparing to their propriety alternative is funding. As there are examples such as PeerTube which are very good being a free software when some company funds the developer to work full time on the project. Of course there are examples like Element which have that but they're not very good because they've spent their effort in the wrong way.
Programmer with Python and Javascript and newly Rust. Attending Hormozgan University. LOVE CS and Math.