Moldflow Monday Blog

Mplab — X Compiler

Learn about 2023 Features and their Improvements in Moldflow!

Did you know that Moldflow Adviser and Moldflow Synergy/Insight 2023 are available?
 
In 2023, we introduced the concept of a Named User model for all Moldflow products.
 
With Adviser 2023, we have made some improvements to the solve times when using a Level 3 Accuracy. This was achieved by making some modifications to how the part meshes behind the scenes.
 
With Synergy/Insight 2023, we have made improvements with Midplane Injection Compression, 3D Fiber Orientation Predictions, 3D Sink Mark predictions, Cool(BEM) solver, Shrinkage Compensation per Cavity, and introduced 3D Grill Elements.
 
What is your favorite 2023 feature?

You can see a simplified model and a full model.

For more news about Moldflow and Fusion 360, follow MFS and Mason Myers on LinkedIn.

Previous Post
How to use the Project Scandium in Moldflow Insight!
Next Post
How to use the Add command in Moldflow Insight?

More interesting posts

Mplab — X Compiler

__asm__ volatile ("bsf %0, %1" : "=r"(PORT) : "r"(0)); The compiler will allocate the register for you. It won't clobber the WREG. It's civilised.

void delay_ms(int ms) { for(int i=0; i<ms*1000; i++); } At -O0 , it works. At -O3 , the compiler notices the loop has no side effects. It doesn't just optimize the loop—it deletes the entire function . Your LED now toggles at 100 MHz. Poof. mplab x compiler

Pro tip: Enable the . It outputs a .map file that reads like a confessional—showing exactly where every variable sinned (i.e., consumed a cycle). 2. Optimization Levels: The "Surgeon" vs. The "Wrecking Ball" The default optimization ( -O1 ) is safe. But -O3 (for XC32) or -Os (for XC8) is where things get interesting. __asm__ volatile ("bsf %0, %1" : "=r"(PORT) :

Also, enable . The compiler will tell you exactly which function blows your stack budget. This is not debugging; this is prophecy. 5. Literally Writing Assembly Inside C (Without the Headache) When you must bit-bang a WS2812 LED or toggle a pin in 50 ns, inline assembly is your friend. But the XC compilers have a trick: Extended Asm . void delay_ms(int ms) { for(int i=0; i&lt;ms*1000; i++);

Check out our training offerings ranging from interpretation
to software skills in Moldflow & Fusion 360

Get to know the Plastic Engineering Group
– our engineering company for injection molding and mechanical simulations

PEG-Logo-2019_weiss

__asm__ volatile ("bsf %0, %1" : "=r"(PORT) : "r"(0)); The compiler will allocate the register for you. It won't clobber the WREG. It's civilised.

void delay_ms(int ms) { for(int i=0; i<ms*1000; i++); } At -O0 , it works. At -O3 , the compiler notices the loop has no side effects. It doesn't just optimize the loop—it deletes the entire function . Your LED now toggles at 100 MHz. Poof.

Pro tip: Enable the . It outputs a .map file that reads like a confessional—showing exactly where every variable sinned (i.e., consumed a cycle). 2. Optimization Levels: The "Surgeon" vs. The "Wrecking Ball" The default optimization ( -O1 ) is safe. But -O3 (for XC32) or -Os (for XC8) is where things get interesting.

Also, enable . The compiler will tell you exactly which function blows your stack budget. This is not debugging; this is prophecy. 5. Literally Writing Assembly Inside C (Without the Headache) When you must bit-bang a WS2812 LED or toggle a pin in 50 ns, inline assembly is your friend. But the XC compilers have a trick: Extended Asm .