tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Adding new feature - Kcov



On 12.12.2018 18:04, Mouse wrote:
>>> Why would you store pointers in integers at all?  Surely the right
>>> thing to do is store them as void * (for data pointers) or
>>> void (*)() (for function pointers)...?
>> kcov utilizes compiler instrumentation that uses low-lever, below the
>> C and C++ language (or runtime), thus here it doesn't matter what's
>> the exact storage type of a pointer.  For simplicity of a kCov
>> runtime we store the pointers as integers.
> 
> If it's that machine-dependent, shouldn't this be on the relevant
> port-* list(s), rather than tech-kern?  Or am I missing something else?
> 

It's supported probably by all GCC and Clang/LLVM backends.

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index