When you are developing embedded software what are the important aspects you examine in the map
Type: Posts; User: Kittu20
When you are developing embedded software what are the important aspects you examine in the map
Sorry for not mentioned Embedded software development. How do you analyze MAP file for embedded software development
Do you analyze the map file in software development, especially when using the GCC compiler? If yes, what are the important aspects you examine in the map file?
This command provides detailed information about of different sections like .text, .data, and .bss.
Hi everyone,
I'm learning about how computer memory works in C programming. Can you share how you figure out where things go in memory when you write C code?
What tools or methods do you use to...
I apologize for the confusion and the errors I encountered. Thank you for your patience
I use the following commands to compile and run the main code:
gcc -o main main.c add.c
main
When I ran the command gcc main.c add.c I received an error message
gcc: error: main.c: No such file or directory
even i tried gcc -o main.c add.c
...
I ran your code and got error because you are using main keyword in two source file
C:\Users\Kittu\Desktop\C Example>gcc -o hello main.c add.c...
I'm currently trying to grasp the concept of unit testing, particularly in the context of c program. I've gone through some resources, but I'm still struggling to fully understand how to apply it...
I understand that function pointer is pointer in c language that can store the address of a function, and can be use in call back
simple code
#include <stdio.h>
void foo()
{...
Yes It works
I don't understand why need of bar function in your code ?
why it can't be like
extern void (*fp)();
fp();
When I ran your code on my window PC I got output "The system cannot execute the specified program"
command
C:\Users\Kittu\Desktop\C Example>gcc -o hello main.c file1.c
...
I am trying indirectly accessing a static function using function pointer within a program. , I've encountered errors that I'm struggling to resolve.
main.c
#include<stdio.h>
void...
sorry but i don't find in paragraph that show where address of function store in which area
imagine we have code where does foo() and fun() functions will store and in which reason of memory
...
sorry it was my mistake
#include<stdio.h>
int Global_Variable;
int Static_Global_Variable;
extern int x;
My main concern when writing variables in code is understanding where they are stored in memory and why they are stored in specific areas as mentioned in link . Given that I'm using MinGW GCC on...
I can write code using different types of variables and access them. I am using the MinGW GCC compiler on Windows 11. However, I'm still curious about where variables like const and volatile would be...
I noticed there wasn't any information about where extern variables are store. Could you please clarify where extern variables are stored in this memory structure?
Additionally, each function has...
Hi there,
I have been reading the article shared in link Memory Layout of C Programs - GeeksforGeeks, but I'm still having trouble understanding the memory structure in C. From what I gathered,...
I'm looking your expertise to help me understand why the output is not as expected.
#include <stdio.h>
#define SQUARE(x) (x)*(x)
int main()
{
Hello everyone,
I'm trying to understand the concept of dynamic memory allocation and reallocation in C, specifically how the realloc function works. Let me illustrate my confusion with an example:...
I'd like to clarify that my question about setting multiple bits is within the context of embedded systems, where we can use 8-bit, 16-bit, or 32-bit microcontrollers.
I've demonstrated how I...
I wanted to discuss a situation where we need to set more than two bits in a 8-bit or 16-bit or 32-bit register and explore a suitable logic
By using below approach, we can set multiple bits in a...
Thank you salem
What's puzzling me is the statement that "malloc returns a pointer to the first byte of the allocated memory."
So, a function's return type can vary depending on the specific...
I've been trying to understand how the malloc function in C dynamically allocates memory, and I'm not entirely clear on it. I read some theory but still have some questions.
Let's look at this...