Why the generated C codes have "b_"?

4 visualizaciones (últimos 30 días)
Hao Yan
Hao Yan el 19 de Jun. de 2019
Comentada: Ryan Wang el 5 de En. de 2022
Hello everyone,
Just new to the forumn, please forgive me if i raised up the question in an improper way.
Recently, I am using MATLAB coder to generate C codes. But in the generated codes, I realilzed that some variables have b_ prefix.
For example.
start_point = 1; % this is start_point
Then, the generated codes would look like:
/* this is start_point */
int b_start_point = 1;
I am not pretty sure why the varialbe "start_point " has "b_" in front of the variable. Since it is the first time that it is defined, and also, there is no "start_point" in the C code, which means that it is not already exist.
Anyone can give me some clue about why it happens?
Thanks a lot.
  1 comentario
Ryan Wang
Ryan Wang el 5 de En. de 2022
it is possible due to variable name clash. That matlab coder has to rename that variable to ensure it is building successfully. NOT sure myself...

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB Coder en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by