On Tue, Apr 27, 2021 at 10:04 AM Manlio Perillo <manlio.peri...@gmail.com> wrote: > > Il giorno martedì 27 aprile 2021 alle 00:40:17 UTC+2 Ian Lance Taylor ha > scritto: >> >> On Mon, Apr 26, 2021 at 1:24 AM Pure White <wu.pur...@gmail.com> wrote: >> > [...] >> > So I really want to know what is the right way to do vdso call outside >> > runtime? >> >> The right way is to use cgo. But probably the cost of making the cgo >> call will overwhelm the speed advantage of using the coarse clocks. >> >> Using go:linkname to call systemstack is completely unsupported, and >> is even less maintainable than your first method. >> >> I have to admit that I don't see a way to do this at all. What is the >> application? How much difference will it make to use the coarse >> timestamps? >> >> Ian > > > Is it technically possible to generate fast unguarded cgo code, using some > directive like `//cgo:fastcall` ?
It is technically possible, but unlikely to be implemented. There is some discussion at https://golang.org/issue/42469. Ian -- 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/CAOyqgcXfpPLaNwKAv2gc5YnjWq41%3DqNUHSrpVgaKiHddFVfppw%40mail.gmail.com.