Welcome! Log In Create A New Profile

Advanced

Understanding my flavor of Marlin

Posted by b-morgan 
Understanding my flavor of Marlin
August 26, 2017 10:51AM
I have downloaded a copy of the Marlin firmware version currently installed in my printer (Lulzbot TAZ 6) mostly for my own education.

I can look at the source code but because of the heavy dependency on conditional compilation, its a lot of work to determine exactly which code is actually being used.

Is it possible to use the C pre-processor to generate the actual source code that will be compiled based on the settings in configuration.h, etc.? If it is possible, some guidance on how would be appreciated.

Any other suggestions on how to ease the effort needed to understand what code is actually being used?

My primary system is Windows 10, but I have Linux machines that I can use.
Re: Understanding my flavor of Marlin
August 26, 2017 06:38PM
I'll answer my own question in case this topic interests anyone else.

Microsoft Visual Studio Community Edition is free as is Arduino IDE for Visual Studio (http://www.visualmicro.com/).

You can open Marlin.ico in Visual Studio and the builtin editor uses color coding to indicate which #defines are active and therefore which code is actually going to be compiled.
Sorry, only registered users may post in this forum.

Click here to login