On 2/27/19 3:14 AM, David Hildenbrand wrote:
> Especially for inline asm with immediates;
> 
> static inline void some_instr(uint8_t imm)
> {
>     asm volatile("...", :: "i" (imm));
> }
> 
> static void test()
> {
>     some_instr(1);
> }

FWIW, __attribute__((always_inline)) should work even with -O0.


r~

Reply via email to