Basic C

  1. C program: reverse a n element array of numberst , 16_bit signed int

  2. C program : write a stuct with 2 - 1byte memory , pass it to function as reference and print data , plus size of struct

  3. Structure padding , structure packing

  4. Union how is it in memory?

  5. using <stdint.h> for uinst8_t , uint16_t etc

  6. Pointers , derefernce a pointer , reference to a data value

  7. scanf, and printf learn well for coding related to C

  8. memory map in C : Code,Data,stack, heap

  9. 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 ?

Last updated