« first day (2028 days earlier)      last day (1611 days later) » 

9:46 AM
Hi everyone
i'm trying to wrap my head around data alignment
to increase performance most of online ressources i found suggest aligning data to 64 boundaries
64bytes*
while reading this article: software.intel.com/en-us/articles/…
if you scroll all the way down, the author suggests to align a struct to 16bytes instead
any ideas why?
i looked in SO and found this answer: stackoverflow.com/a/7281770
the author mentionned "intel states that you should also avoid crossing 16 byte boundries"
in the comments he added "16 bytes is to prevent splitting" ??
any ideas?
 
 
3 hours later…
12:36 PM
@360NS well, all of this seems like very CPU-specific thing.
@360NS and here You go, the author of the answers is talking about CPU caches. Do You really need to optimize for CPU cache at this stage of the project You're working on?
 
 
1 hour later…
2:03 PM
hi @Kamiccolo thanks for the reply
i was just trying to learn how to write code for performance,
and among the things i found when searching
was learning to write "cache-friendly" code
that's how i stumbled upon these questions
i guess you can say it's more curiosity than necessity
i also found this question on SO: stackoverflow.com/questions/16699247/… which addresses the importance of such optimization showcases
though it's more oriented towards C++, some ideas and answers are interesting
 
2:20 PM
@Kamiccolo its arm-none-eabi-gcc
no i haven't redefined it.
yeah, and its version like 7.2 i think, so it hasn't been changed since 4.x according to the github issue
i don't get how removing PRIu8 but leaving PRIu16 would be beneficial at all lol, but thats just me
 
 
6 hours later…
7:59 PM
ey @Kcvin which arduino you got?
 
@Kcvin ArduinoIDE?
 
helloc @Kamiccolo
how's it goin
 
Helloc @VioAriton; :} stuck in France with shitty weather for last week and a half or so...
 
Yeah It's shitty here as well. You got work in France?
 
@VioAriton eh.... a few "show-off" flights in Germany, Belgium and France. Coming with the team as a tech-support. Sick of boredom already :|
@VioAriton he he, You got it covered :}
 
8:29 PM
@Kamiccolo haha, yes sir. What do you mean show-off flights?
 
@VioAriton Well, I work in a company which does power-grid inspection from the air. We develop hardware and software for this purpose and do flights as well. So, there are a few clients in these countries which would like to see how we work and what can we do.
 
@Kamiccolo wow that sounds interesting
 
Well, it's way more boring than it sounds :} It's just a box with bunch of cameras hooked beneath the belly of the helicopter...
 
ah I thought you guys use drones :D
 
@VioAriton Well, that's for foreseeable future. At this moment no drone can guarantee at least 2 hours of flight without refueling with >50kg equipment....
From some earlier project:
 
8:43 PM
that's still pretty cool though
@360NS the 16byte align was only for that specific example. Just remember that there is a cache line and try to put important data together. Don't sweat about it since these are cpu dependent
 
pretty dangerous as well :|
 
@Kamiccolo yeah I can't imagine. I hope you guys hired a good pilot :D
 
Well, in every country it's different. In general, even the culture is different.
 
9:06 PM
No Arduino. It's a ARM chip.
 

« first day (2028 days earlier)      last day (1611 days later) »