Re: [go-nuts] Unable to build gollvm: missing and no known rule to make it

2021-11-22 Thread Pure White
ithin that build area you first run cmake, then run ninja e.g. >> >> cd /tmp/build >> cmake -G Ninja ../llvm-project/llvm >> ninja ... >> >> What I am suggesting is that from your build area (/tmp/build, NOT >> /tmp/llvm-project) you issue the comman

Re: [go-nuts] Unable to build gollvm: missing and no known rule to make it

2021-11-22 Thread Pure White
mp/build > cmake -G Ninja ../llvm-project/llvm > ninja ... > > What I am suggesting is that from your build area (/tmp/build, NOT > /tmp/llvm-project) you issue the command > > rm -rf tools/gollvm/libgo > > Thanks, Than > > > On Mon, Nov 22, 2021 at 11:42 AM P

Re: [go-nuts] Unable to build gollvm: missing and no known rule to make it

2021-11-22 Thread Pure White
rerun cmake, and then try again. > > I did a test build just now with tip: > > LLVM: 56db1c072c92be36fb1d76aa30487ad62dc58ea8 > gollvm: 263e415e02543b9d46d19b5076454ae6c07860fe > gofrontend: 3e9f4ee16683883ccfb8661d99318c74bb7a4bef > > and it seems to work ok. > > Thanks, Th

Re: [go-nuts] Re: How to do vdso calls in my own code?

2021-04-28 Thread Pure White
erhead to a minimum. Normally makes no > difference if the operations are that short. Similar to how benchmarking > works - time the total and divide by the number of operations. > > > On Apr 28, 2021, at 10:04 PM, Pure White wrote: > > > > Hello, > > We are doin

Re: [go-nuts] Re: How to do vdso calls in my own code?

2021-04-28 Thread Pure White
kes no > difference if the operations are that short. Similar to how benchmarking > works - time the total and divide by the number of operations. > > > On Apr 28, 2021, at 10:04 PM, Pure White wrote: > > > > Hello, > > We are doing heavily tracing, and for each func we n

Re: [go-nuts] Re: How to do vdso calls in my own code?

2021-04-28 Thread Pure White
Hello, We are doing heavily tracing, and for each func we need to get the time, so that’s why I’d like to optimize this. 在 2021年4月29日 +0800 AM12:11,Ian Lance Taylor ,写道: > In the meantime we both sent speedups for time.Now. I measured > time.Now as taking about 30 nanoseconds per call before the s

Re: [go-nuts] Re: How to do vdso calls in my own code?

2021-04-27 Thread Pure White
Wow, sounds great! Really looking forward to this feature! 在 2021年4月28日 +0800 PM12:22,Ian Lance Taylor ,写道: > On Tue, Apr 27, 2021 at 8:26 PM Pure White wrote: > > > > I think this is a good idea. But I suppose this will meet the same problem > > I have met syscall pack

Re: [go-nuts] Re: How to do vdso calls in my own code?

2021-04-27 Thread Pure White
ance Taylor > wrote: > >> On Tue, Apr 27, 2021, 8:55 AM Manlio Perillo >> wrote: >> >>> Il giorno martedì 27 aprile 2021 alle 17:51:46 UTC+2 Ian Lance Taylor ha >>> scritto: >>> >>>> On Tue, Apr 27, 2021 at 7:43 AM Manlio

Re: [go-nuts] How to do vdso calls in my own code?

2021-04-26 Thread Pure White
there’s other situation that this is necessary such as fin-tech. 在 2021年4月27日 +0800 PM12:13,Ian Lance Taylor ,写道: > On Mon, Apr 26, 2021 at 8:57 PM Pure White wrote: > > > > As you have said, the cost of making the cgo call is too expensive for my > > situation. > > >

Re: [go-nuts] How to do vdso calls in my own code?

2021-04-26 Thread Pure White
? 在 2021年4月27日 +0800 AM6:39,Ian Lance Taylor ,写道: > On Mon, Apr 26, 2021 at 1:24 AM Pure White wrote: > > > > I'm trying to get time using `CLOCK_REALTIME_COARSE` and > > `CLOCK_MONOTONIC_COARSE` for performance reasons, and need to use vdso call > > by hand-writte

[go-nuts] How to do vdso calls in my own code?

2021-04-26 Thread Pure White
Hi all, I'm trying to get time using `CLOCK_REALTIME_COARSE` and `CLOCK_MONOTONIC_COARSE` for performance reasons, and need to use vdso call by hand-written assembly code. That is, I want to reimplement `time.Now` using `CLOCK_REALTIME_COARSE` and `CLOCK_MONOTONIC_COARSE`. I referenced the cod