Assembly Code Snippet to measure base CPU Frequency
Basically the base (not turbo boosted) CPU Frequency is amount of TSC Increments per one second.
Basically the base (not turbo boosted) CPU Frequency is amount of TSC Increments per one second.
This code will read latency and throughput of the CPU instructions (Draft)
This code will read memory at different sizes and measure bandwidth
The easiest way to print integer and floating-point values from Assembly Code to the Console
llvm-mca is a performance analysis tool to statically measure the performance of machine code in a specific CPU.
From time to time, I need to fill images with random values — and do it quickly. There are two simple yet elegant algorithms to achieve this.
A practical example of compiler optimization side effects: when the volatile
keyword becomes essential
Second post about LabVIEW and Rust. This time we will pass native LabVIEW array into DLL written in Rust and resize inside.
Finally wrote command line script to build open62541 library automatically (more or less).
For some reason, I need a fast method for string search. The LabVIEW Search/Split String function is relatively slow, I’ve done this using String Zilla, and achieved around a 20x boost with AVX2/AVX512.
I just encountered slow string performance in LabVIEW when a large string is passed to a DLL as a C string pointer. It is always better to pass it as ‘Adapt to Type’ instead of a pointer.
By default its limited, but can be manually increased in LabVIEW.ini
ParallelLoop.MaxNumLoopInstances=256
B&R PLC could be programmed with C and C++. But you can also use Assembly. Below short instruction how to do that.
B&R PLC could be programmed with C++. State Machine is common used pattern. There are lot of examples of how to implement State Machines in C++. One of the example was taken and turned to B&R State Machine
It is a very funny fact that the NI’S Web Site doesn’t support NI’s Snippets properly, especially on NI Forum, where the Snippets used actively to exchange the small pieces of the LabVIEW code. Here how you can get code from such snippets.