简体   繁体   中英

Is there a list of all compiler intrinsic function for Delphi by version?

As answered in other SO questions modern Delphi finally supports compiler intrinsic functions like AtomicIncrement .

Is there somewhere a list of which intrinsic function is introduced in what version of Delphi so I could use {$if CompilerVersion ...} to keep the code backward compatible (with inline asm) and cleaner for future compilers?

Well, you can use the documentation, but I cannot vouch for its accuracy.

An as it happens, this list of intrinsics is incomplete. It doesn't have the functions that you are interested in. Which is a shame. If you are interested in knowing which version those specific functions were added, then you can surely work that out. If you want to have an official list that covers every single function, then it would appear not to exist. I guess you will have to either live without it, or create the list.

Back to the documentation, you can consider this list:

Look at the final two. The XE3 link has info, and the XE2 link is empty. Which suggests that this function was added in XE3. A quick test confirms that.

Given the lack of reliability of the official documentation, are you prepared to trust to it?

So, my advice is that you test this yourself. That has the benefit that you will know for sure that your code is correct.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM