How are asm labeled functions called? [Resolved]
Posted: Mon Dec 21, 2020 8:02 am
Hello,
would somebody be so kind and post me here disassembly of the following code, specifically calls mentioned in the comments, please?
1. Direct calling IDF and FreeRTOS functions
main.c
2. Calling asm labeled IDF and FreeRTOS functions
myaliases.h
main.c
All I would like to know is whether the function calls are different or not. I don't have any debuggable HW and as far as I understamd, there is no debugging emulator, so I cannot see disassembly myself. Could somebody post here disassembly of those 4 function calls, please?
This is related to my previous questions:
- Function alias for IDF
- How to show disassembly using VS Code without debugging HW?
Thank you
Have a nice day
would somebody be so kind and post me here disassembly of the following code, specifically calls mentioned in the comments, please?
1. Direct calling IDF and FreeRTOS functions
main.c
Code: Select all
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/timer.h"
void app_main() {
vTaskDelay(1000); // 1.1. disassembly of direct FreeRTOS function call
timer_set_counter_value(0, 1, 100); // 1.2. disassembly of direct IDF function call
}myaliases.h
Code: Select all
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/timer.h"
void MyTaskDelay(const TickType_t MyTicksToDelay) asm ("vTaskDelay");
esp_err_t MyTimerSetCounterValue(timer_group_t MyGroupNum, timer_idx_t MyTimerNum, uint64_t MyLoadVal) asm ("timer_set_counter_value");Code: Select all
#include <stdio.h>
#include "myaliases.h"
void app_main() {
MyTaskDelay(1000); // 2.1. disassembly of the asm labeled FreeRTOS function call
MyTimerSetCounterValue(0, 1, 100); // 2.2. disassembly of the asm labeled IDF function call
}This is related to my previous questions:
- Function alias for IDF
- How to show disassembly using VS Code without debugging HW?
Thank you
Have a nice day