I did something like this :
char command [] = "Some assmebly code";
asm volatile(command);
It didnt work. Specifically, I get the following error :
Expected string literal before command.
So, can I only use string literals with C inline assembly ? I really want to be able to use string variables like above. How can I achieve this effect ?
As far as I know asm code fragment are inlined during compilation phase, not run-time. Which means you can't do what you are doing.
As pmg suggested, you could do it by calling external commands, but it would mean user would need to have all the tools installed.