Search:

Type: Posts; User: Kittu20

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: MAP file

    by Kittu20
    Replies
    5
    Views
    441

    When you are developing embedded software what...

    When you are developing embedded software what are the important aspects you examine in the map
  2. Thread: MAP file

    by Kittu20
    Replies
    5
    Views
    441

    Sorry for not mentioned Embedded software...

    Sorry for not mentioned Embedded software development. How do you analyze MAP file for embedded software development
  3. Thread: MAP file

    by Kittu20
    Replies
    5
    Views
    441

    MAP file

    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?
  4. Replies
    2
    Views
    1,060

    This command provides detailed information about ...

    This command provides detailed information about of different sections like .text, .data, and .bss.
  5. Replies
    2
    Views
    1,060

    How Do You Analyze C Memory Layout?

    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...
  6. Replies
    8
    Views
    4,215

    I apologize for the confusion and the errors I...

    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
  7. Replies
    8
    Views
    4,215

    When I ran the command gcc main.c add.c I...

    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


    ...
  8. Replies
    8
    Views
    4,215

    I ran your code and got error because you are...

    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...
  9. Replies
    8
    Views
    4,215

    Unite Testing in 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...
  10. Replies
    5
    Views
    5,758

    practical use of function pointer

    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()
    {...
  11. Replies
    6
    Views
    3,358

    Yes It works I don't understand why need of...

    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();
  12. Replies
    6
    Views
    3,358

    When I ran your code on my window PC I got output...

    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

    ...
  13. Replies
    6
    Views
    3,358

    accessing a static function

    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...
  14. Replies
    13
    Views
    5,257

    sorry but i don't find in paragraph that show...

    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
    ...
  15. Replies
    13
    Views
    5,257

    sorry it was my mistake #include ...

    sorry it was my mistake


    #include<stdio.h>

    int Global_Variable;
    int Static_Global_Variable;


    extern int x;
  16. Replies
    13
    Views
    5,257

    My main concern when writing variables in code is...

    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...
  17. Replies
    13
    Views
    5,257

    I can write code using different types of...

    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...
  18. Replies
    13
    Views
    5,257

    I noticed there wasn't any information about...

    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...
  19. Replies
    13
    Views
    5,257

    memory structure

    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,...
  20. Replies
    2
    Views
    2,605

    macro function result

    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()
    {
  21. Replies
    2
    Views
    3,415

    How memory reallocation work

    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:...
  22. Replies
    3
    Views
    1,797

    I'd like to clarify that my question about...

    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...
  23. Replies
    3
    Views
    1,797

    Logic to set more than one bits

    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...
  24. Replies
    5
    Views
    2,875

    Thank you salem What's puzzling me is the...

    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...
  25. Replies
    5
    Views
    2,875

    how the malloc function work in C

    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...
Results 1 to 25 of 94
Page 1 of 4 1 2 3 4