Is it possible to program Raspberry Pi in assembly?

You can talk about almost anything that you want to on this board.

Moderator: Moderators

User avatar
Kasumi
Posts: 1293
Joined: Wed Apr 02, 2008 2:09 pm

Re: Is it possible to program Raspberry Pi in assembly?

Post by Kasumi »

tepples wrote: Or someone doesn't care about micro-optimizations for speed but does care about them for size in an NROM-128 project.
That's not perceived bloat just from reading documentation, which is what the person I was responding to seemed to say. I feel like a hypothetical NROM-128 project is outside that context. But I still disagree with the premise. If you're making an NROM-128 project you could still get more mileage for size out of assembly than the "bloated" by comparison C, right? "But someone could care less about the size benefit of assembly and care more about the time it takes to write in an NROM-256 project." Yes. Sure. Okay.

I guess in general, I feel that while the information presented may add to the thread, I feel that because it's posted as a reply to me, but not as a reply to what I feel like I said that confuses me about how to respond. I answered about features from C++ I use that aren't templates, it doesn't mean there's never a reason not to use them. I can see how that can maybe be gotten from "I don't have a reason to use Y", but I'd have said "There's no reason to use Y" if I meant that.
thefox wrote:This library is pretty sweet: https://github.com/fmtlib/fmt
Heheh! I know of it. It might be interesting to start a C/++ resource thread, but there's not much I can personally cosign as "used in an actual project".
User avatar
Sogona
Posts: 186
Joined: Thu Jul 23, 2015 7:54 pm
Location: USA
Contact:

Re: Is it possible to program Raspberry Pi in assembly?

Post by Sogona »

I mean the whole point of high level languages is to abstract away from the underlying asm, so when I'm coding in C I'm only worried about optimizing on a macro scale. Unless I was doing something time-critical/embedded, the amount of time/effort it would take to either A.) write inline-asm that doesn't break the rest of the program (and doesn't gcc force you to use the ugly AT&T syntax for x86?) or B.) writing C code that translates into optimal asm isnt worth it, to me at least.
Post Reply