https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87291

--- Comment #23 from bouanto at zoho dot com ---
Created attachment 48685
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48685&action=edit
Example of global assembly

See answers below.

(In reply to David Malcolm from comment #22)
> Created attachment 48684 [details]
> Updated work-in-progress patch which adds "asm goto" support
> 
> Here's an updated version of the patch which adds "asm goto" support.  grep
> for test_i386_basic_asm_3a to see an example.
> 
> Also uploaded to:
> https://dmalcolm.fedorapeople.org/gcc/2020-06-05/0001-FIXME-WIP-on-extended-
> asm-support-v2.patch
> 
> Does this API make sense?

Yes, now I understand what you meant.
The API looks good.


> I could use a concrete example of what you might use in C.

> An issue is ordering: in C, these top-level statements presumably are ordered
> relative to each other and the function bodies, based on the order they're 
> seen 
> by the parser (though I'm guessing here).  Would something similar happen 
> based 
> on the order of calls to gcc_jit_context_new_function?

I attached an example of global assembly.

I don't understand the ordering issue.
I also don't understand how gcc_jit_context_new_function is used here.

Reply via email to