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` ? Thanks Manlio -- 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/b843477e-b863-4d49-bdc6-4b2d6401383fn%40googlegroups.com.