Can AI really optimize your code?

5/23/2025

Can AI write code? Yes. But does it write good code?

It’s no secret: everyone is talking about AI these days. While AI has entered our personal lives, it has also become part of our professional lives as developers. Several tools have emerged to reduce software development time, including GitHub Copilot, Codeium, and CodeGPT.

Some of these tools are even used by members of the WedoLow team (hey, Copilot!). Since development time is the most critical variable in embedded software development, developers appreciate these kinds of tools and are increasingly adopting them.

But can these tools generate performant and efficient code? That’s exactly what we’ll explore in this deep dive.

Developers are increasingly using AI

Do you already use AI-assisted code generation tools?

According to Stack Overflow’s 2024 Developer Survey, 63.2% of the more than 46,000 professional developers surveyed report using such tools — and that’s already the case for some developers at WedoLow. But while these solutions offer significant productivity gains and allow more code to be produced, they also raise questions about the performance and quality of the generated code.

A closer look at code quality challenges

At WedoLow, our expertise focuses on code performance. With that in mind, we analyze the contributions of AI-based code generation tools. But it is just as important to assess another dimension: the quality of the code produced.

A study by GitClear highlights a concerning trend: the use of these tools appears correlated with a decline in code quality. Specifically, the study measured the evolution of “code churn,” i.e., the percentage of lines of code revised or modified within two weeks of their creation. This rate increased by 26% in just one year, with a notable acceleration of the trend, along with a rise in copy-paste practices.

Time savings vs. performance: a delicate balance

These indicators raise important questions about the true productivity gains offered by these tools. At WedoLow, we believe AI-based solutions can indeed speed up certain simple tasks or the initial drafting phase, but they are not suited for producing high-performance code. Developers must therefore remain vigilant and constantly evaluate the quality and efficiency of AI-generated code.

But what about performance — the core of our expertise at WedoLow? How can it be measured? Can AI-generated code truly meet the requirements of embedded systems?

Putting AI-generated code to the test in embedded applications

We propose a live experiment under real-world conditions. The idea is simple:

  • Use an AI-based code generation tool to design and generate code for a specific feature. For example, asking it to create a signal processing filter in C or C++, to be executed on a specific processor.
  • On our side, we will prepare a test bench capable of reading input data, executing the filter, producing the output, and storing it — all on the targeted hardware platform.
  • We will then run a full code analysis with our beLow-Explore product to measure the performance debt of the generated code.

Who knows — we might even be pleasantly surprised!

Ready to optimize your embedded code?

Get started with WedoLow and see how we can transform your software performance