Skip to main content
6 events
when toggle format what by license comment
Sep 22, 2021 at 13:12 history edited 640KB CC BY-SA 4.0
we're actually talking assembly language #pedantic
Sep 20, 2021 at 14:11 history edited 640KB CC BY-SA 4.0
consensus so far
Apr 24, 2021 at 6:58 comment added Peter Cordes You can do this in real programs using real asm / C toolchains, so it seems perfectly fine to me. From the PoV of anything else, you could look at this as the function jumping to a helper function next to it, if you're using tools that insist on treating the bytes of the function proper as the ones following the label. Does a function with instructions before the entry-point cause problems for anything? - AFAIK it's fine even in Linux shared or static libraries (maybe requiring labels and separate .size metadata for the part before the function entry)
Jan 27, 2021 at 23:50 comment added EasyasPi I see nothing wrong with that. The reason you don't see it in other languages is because they don't allow you to. Assembly is just bytes.
Jan 27, 2021 at 21:33 history edited 640KB CC BY-SA 4.0
added 77 characters in body
Jan 27, 2021 at 21:20 history answered 640KB CC BY-SA 4.0