I think you can use nasm assembly through inline ASM in cgo indirectly... Go 
supports writing .s-files written in Go's internal assembly format, which 
should be much faster than cgo to compile and is probably preferable, but needs 
a bit of learning.

[Joop Kiefte - Chat @ 
Spike](https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=q9zcd)   
[q9zcd]

On October 16, 2020 at 12:30 GMT, saurav deshpande 
<saurav.deshpande1...@gmail.com> wrote:

So, is it possible to define functions declared in go and defined in nasm 
assembly? If yes then can you please share an example.

Thank you

On Friday, October 16, 2020 at 5:39:33 PM UTC+5:30 iko...@gmail.com wrote:

I don't know how this should actually be done, but remember that the Go 
assembly is not actually Plan 9 assembly, it's an abstraction by itself, meant 
for internal use first and foremost.

[Joop Kiefte - Chat @ 
Spike](https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=q9y39)   
[q9y39]

On October 16, 2020 at 10:20 GMT, saurav deshpande <saurav.des...@gmail.com> 
wrote:

Thank you for the reply.
I do not understand, actually I am trying to define the fuctions in plan9 
assembly whoes declaration is done in a go file. I want to use macro like the 
macro in nasm, but couldn't understand how to do it.
It would be very helpful if you could give an example.

Thank you.

On Friday, October 16, 2020 at 12:07:23 AM UTC+5:30 al...@pbrane.org wrote:

saurav deshpande <saurav.des...@gmail.com> once said:
> How to implement macro in plan9 assembly? I read the documentation of
> plan9 assembly but could not find it. Is there any alternative for
> macro in plan9?

Assembly language source files are preprocessed just like C source.
The familiar #define and #include directives should work as expected.

Anthony

--
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts...@googlegroups.com.
To view this discussion on the web visit 
[https://groups.google.com/d/msgid/golang-nuts/c779e51f-ff41-4686-a843-0830316383c3n%40googlegroups.com](https://groups.google.com/d/msgid/golang-nuts/c779e51f-ff41-4686-a843-0830316383c3n%40googlegroups.com?utm_medium=email&utm_source=footer).

--
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
[https://groups.google.com/d/msgid/golang-nuts/79b37153-fcc1-4a5f-85ea-6127d28465d8n%40googlegroups.com](https://groups.google.com/d/msgid/golang-nuts/79b37153-fcc1-4a5f-85ea-6127d28465d8n%40googlegroups.com?utm_medium=email&utm_source=footer).

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c-64693-kgc8j4wr-8hbgi2%3D8prlvb%402.gethop.com.

Reply via email to