Basic C
Last updated
Last updated
C program: reverse a n element array of numberst , 16_bit signed int
C program : write a stuct with 2 - 1byte memory , pass it to function as reference and print data , plus size of struct
Structure padding , structure packing
Union how is it in memory?
using <stdint.h> for uinst8_t , uint16_t etc
Pointers , derefernce a pointer , reference to a data value
scanf, and printf learn well for coding related to C
memory map in C : Code,Data,stack, heap
Why volatile is used? Compiler optimisation? code size or speed?
9. size of char, int , float double
10. typedef vs define for stucture definition
11. pointer to data, pointer to function , pointer to strcures , pinter to pointer
12 .auto extern static register Storage class in C
13. #pragma examples
14. Learn Compilation steps
15. GCC , make, Cmake, ninja
GCC flags
Q: How to add macro without using #define
i makefile
-DNAME
NAME is macro name
16. RAM, ROM, EEPROM , FLASH where is code ? etc?
17. Possible to do Array of registers? register arr[20]? (No because of registers are few and compiler might not allocate 20 registers also 20 registers wont be available)
18. IO are memorry mapped possible to read and write to IO
19. #define portb ((volatile uint32_t )* 0x10000000)
deine a portb at some location access it. portb |=(1<<32);
20. __IO in register definition : #define __IO volatile
21. Breakpoint / types how it works? where is it placed volatile or non volatile? both
22. JTAG? SWD ?