LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way to read the code generated by the DFIR before its compilation by the LLVM in Labview 2010 ?

Solved!
Go to solution

Hi,

 

I would like to know if there is a tool or a software to look at the IL code generated after the DFIR step and before the call to LLVM when you compil a VI in Labview 2010 ?

Information about DFIR and LLVM in this article : NI LabVIEW Compiler: Under the Hood

 

I know it's a weird request. I think sometimes it's useful to know exactly what are optimizations done on a code in comparison with another one.

Some details are not visibles on a simple benchmark, you only have a result.

 

By the way, I am very interested too by any documentation you could have on this subject.

 

Regards,

Fabien

 

0 Kudos
Message 1 of 4
(2,908 Views)
Solution
Accepted by topic author FabienA

Hello Fabien,

 

The DFIR is a new technology in LabVIEW 2009 and LLVM is a new technology in LabVIEW 2010.

 

This link http://zone.ni.com/devzone/cda/tut/p/id/11472 is the best to understand this process. This link is the only information on DFIR or LLVM.

 

There are no tools to see the optimization made ​​by the DFIR.

 

 

Brice S.
National Instruments France

0 Kudos
Message 2 of 4
(2,881 Views)

It's what I feared.

Thanks for your answer.

 

Regards,

0 Kudos
Message 3 of 4
(2,865 Views)

This is an old post, but there actually is a way:

 

1. Open LabVIEW.ini and add "LVdebugKeys=True". Restart LabVIEW if necessary. This step only needs to be done once.

2. Open the VI you want to read the code for.

3. Hold Control and click the Run arrow. It will look like nothing happened—not even running the VI—but this tells LabVIEW to save a copy of the code in memory.

4. Hold Control and Shift, and press D, H. This will open "Heap Peek", a debugging window filled with technical information.

5. Select your VI from the top-left section in Heap Peek. If you see multiple entries with your VI's name, just choose any of them; it doesn't matter for this purpose.

6. In the section right under the one where you selected your VI, click "2. Optimized LLVM". The code you're looking for will appear in the bottom half of the window. In case you're interested, there are also options to view the IL code stream and the disassembled native machine code.

Message 4 of 4
(2,365 Views)