What has to put when we are inserting as assembly language
code into the C code? or When we are inserting as assembly
language code into the C code we have to insert one thing
at the start and of the assembly language. What are they?
Answers were Sorted based on User's Feedback
Answer / vaishnavi
we can insert assembly code by using asm()
asm("assembly code")
The compiler will insert these asm code into the assembly code being generated, and hence the compiler-supplied and the user-supplied assembly will be combined
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sivavendra
Yes,, we have to give the assembly code as inline function as follows.....
asm
{
"assembly instructions"
}
Is This Answer Correct ? | 0 Yes | 0 No |
what are the advantages of a macro over a function?
typedef struct { int i:8; char c:9; float f:20; }st_temp; int getdata(st_temp *stptr) { stptr->i = 99; return stptr->i; } main() { st_temp local; int i; local.c = 'v'; local.i = 9; local.f = 23.65; printf(" %d %c %f",local.i,local.c,local.f); i = getdata(&local); printf("\n %d",i); getch(); } why there there is an error during compiling the above program?
Describe the order of precedence with regards to operators in C.
write a function for strtok()??
What are the 5 types of inheritance in c ++?
What’s the special use of UNIONS?
Here is a neat trick for checking whether two strings are equal
Which of the following about the C comments is incorrect ? a.commentscan go over multiple lines b.comments can start any where in the line c.a line can contain comments with out any language statements d.comments can occur within comments
What is NULL pointer?
program in c to print 1 to 100 without using loop
what are the advantages & disadvantages of unions?
How we can set and clear bit in a byte using macro function?