search for: asm_siz

Displaying 2 results from an estimated 2 matches for "asm_siz".

Did you mean: asm_size
2018 Oct 07
0
PROPOSAL: Extend inline asm syntax with size spec
...sorts, to tell gcc to inline the function X which is inlining the asm statement into the function Y which is calling function X. If you look at the patchset, it is moving everything to asm macros where gcc is apparently able to do better inlining. > > 3) asm ("...") __attribute__((asm_size(<size-expr>))); > > Eww. Why? > More precise *size* estimates, yes. And if the user lies he should not > be surprised to get assembler errors, etc. Yes. Another option would be if gcc parses the inline asm directly and does a more precise size estimation. Which is a lot mor...
2018 Oct 07
0
PROPOSAL: Extend inline asm syntax with size spec
...other directives end up in another section anyway. The issue is explained below in the forwarded mail in a larger detail too. Now, Richard suggested doing something like: 1) inline asm ("...") 2) asm ("..." : : : : <size-expr>) 3) asm ("...") __attribute__((asm_size(<size-expr>))); with which user can tell gcc what the size of that inline asm statement is and thus allow for more precise cost estimation and in the end better inlining. And FWIW 3) looks pretty straight-forward to me because attributes are pretty common anyways. But I'm sure there a...