<zid>
might wanna look up what an instruction set is too
<zid>
because apparently you don't know
<gog>
imstructiom set
<zid>
blimstruction sebt
* gog
dabs
xenos1984 has quit [Read error: Connection reset by peer]
<gog>
apparently university of iceland has a similar CS curriculum as i do because one of my wife's friends posted a screenshot of their homework and it was this "bomb defuse" program where you had to do a different buffer overflow or stack smash to get to the next stage
<zid>
cute
<gog>
s/as i do/as my alma mater did/
<gog>
they are cute
lg has quit [Ping timeout: 245 seconds]
<Oli>
I wonder if you convey alma to be the Spanish word for soul, and mater, as a comrade.
<gog>
tovarisch
lg has joined #osdev
<Oli>
Thank you for expanding me about, gog!
<gog>
:|
* gog
expands
m3a has joined #osdev
xenos1984 has joined #osdev
elastic_dog has quit [Ping timeout: 245 seconds]
elastic_dog has joined #osdev
rorx has quit [Ping timeout: 252 seconds]
gog has quit [Ping timeout: 265 seconds]
zaquest has quit [Remote host closed the connection]
zaquest has joined #osdev
rorx_ has joined #osdev
rorx_ is now known as rorx
[_] has joined #osdev
zacque has joined #osdev
[itchyjunk] has quit [Ping timeout: 264 seconds]
vdamewood has joined #osdev
vinleod has joined #osdev
vdamewood has quit [Killed (silver.libera.chat (Nickname regained by services))]
vinleod is now known as vdamewood
sts-q has quit [Ping timeout: 265 seconds]
srjek has quit [Ping timeout: 264 seconds]
sts-q has joined #osdev
[_] has quit [Read error: Connection reset by peer]
devcpu has quit [Quit: leaving]
devcpu has joined #osdev
devcpu has quit [Quit: leaving]
graphitemaster has quit [*.net *.split]
Amanieu_ has quit [*.net *.split]
riverdc_ has quit [*.net *.split]
cultpony has quit [*.net *.split]
thaumavorio_ has quit [*.net *.split]
klange has quit [*.net *.split]
tds has quit [*.net *.split]
jamestmartin has quit [*.net *.split]
klange has joined #osdev
Amanieu has joined #osdev
cultpony has joined #osdev
graphitemaster_ has joined #osdev
riverdc has joined #osdev
tds has joined #osdev
thaumavorio has joined #osdev
<sdfgsdfgs>
that's like.. thanks for stretching me out and filling me up
<sdfgsdfgs>
(with information)
<sdfgsdfgs>
oh well, 6 hours late for this joke but anyways
<sdfgsdfgs>
thanks for feeling my soul, feeling me from the inside, deep inside
<sdfgsdfgs>
inside the fountain of knowledge
devcpu has joined #osdev
ElectronApps has joined #osdev
dzwdz has quit [Ping timeout: 268 seconds]
dzwdz has joined #osdev
<vin>
Why does cpu (say x86) need to access in word size and not byte size?
<Oli>
Data bus size is a word; registers that processor opcodes may use, are word-sized.
<Oli>
By the way, hello, vin! I feel curious about: Do you also go by the named of VinsCool?
<vin>
Oli: Making data bus size a word seems like an ancient decision. Shouldn't the cost of batch vs burst accesses be relooked with modern technology?
<kazinsal>
Most actual accesses are done a cache line at a time for performance
<vin>
Oli: no sorry I don't.
<kazinsal>
Chances are if you're going to access something at 0x123400, you might be about to access something in the same cache line in the near future
<vin>
Right kazinsal but it is weird to require structs to be algined to 4 bytes on x86 because the processor operates on words and not bytes
<vin>
imagine all the wasted cycles and bytes that go into padding structs in an average application.
<kazinsal>
If you're accessing something unaligned and it spills across one data bus word into another, you need to make two accesses
<Oli>
I am yet unfamiliar with the nomenclatures of batch and burst accesses. Thank you vin, for bringing up about, and also replying to my inquiry!
<kazinsal>
It's potentially slower to *not* pad structs, and wasting a few dozen bytes per struct is a non issue when you have dozens of gigs of memory on modern machines
<vin>
A struct with 10B key and size_t val results in 24B because it needs to be 8B aligned, now I can only fit 2 structs in line unless I create a custom struct that pads the last 10B and allows me to store 3 keys and val.
<Mondenkind>
vin: what do you mean, the processor operates on words and not bytes? The processor operates on units of all sizes, from a byte to a cache line
<vin>
Mondenkind: Mondenkind I am talking about the min size a processor can operate on. At this point all access are 64B so word size is really redundant
<Mondenkind>
if a four-byte access crosses a cache line, performance will be worse
<Mondenkind>
aligning all four-byte quantities to a multiple of four bytes prevents this
Vercas9 has joined #osdev
Vercas has quit [Ping timeout: 276 seconds]
Vercas9 is now known as Vercas
<Affliction>
x86 can do unaligned accesses, but they might take a performance hit for the reasons above.
<Affliction>
Some architectures do not allow them, so they don't have to worry about the additional complexity to implement unaligned accesses
<Affliction>
Which could be significant on a smaller microcontrollerish core, for example
C-Man has quit [Ping timeout: 264 seconds]
<Affliction>
at any rate, feel free to turn off alignment for that struct, if the wasted memory or reduced cache efficiency causes problems
darkstardevx has quit [Remote host closed the connection]
darkstarx has joined #osdev
jbg has quit [Ping timeout: 245 seconds]
travisg has quit [Ping timeout: 245 seconds]
travisg has joined #osdev
SanchayanMaity has quit [Ping timeout: 245 seconds]
<jason1234>
is it possibel to boot grub on my USB sdb from the /dev/sda (small size) ?
<jason1234>
I have about 1000 (count) on size on mbr / sda available, after > 1000 bad blocks
<jason1234>
currently I use lilo (very small).
<jason1234>
grub wont fit, it is too bit
<jason1234>
lilo is smaller.
<jason1234>
but I would like a bit of like mikeos or alike to learn boot in assembly.
<Bitweasil>
The ODroid N2+ is better, 3092/3025/5454 on those tests.
<Bitweasil>
erm.
<jason1234>
it is a amd64
<Bitweasil>
If you have a bunch of bad blocks, just replace the USB stick.
<Bitweasil>
But booting from USB should be doable.
<jason1234>
it is bad blaock on hte harddisk
XgF has quit [Remote host closed the connection]
<jason1234>
i screewed hte harddisk due to systemd
<jason1234>
i got crazy to wait for systemd !
<jason1234>
I press and hold 0/1
XgF has joined #osdev
<Bitweasil>
No idea what that means. Yes, you can put a bootloader on a USB stick and boot from the hard drive, if you want, but if you have bad sectors on the drive, replace the drive.
<jason1234>
i want to boot the boot loaeder on sda to boot on the usb then after
<jason1234>
is there a little code for that?
<jason1234>
amd64/ibm
<Bitweasil>
Sure, standard x86 bootloaders should do it.