>> ------
>> extern void AsmFn1(void);
>>
>> int main(void)
>> {
>>         AsmFn1();
>>         return 0;
>> }


>You have not used "ret" instruction in AsmFn2, I guess it will cause
>undefined behavior. I think it has nothing to do with how you compile
>the code. It works perfectly after adding ret instruction at the end
>of AsmFn2. Correct me if I am missing something here.


Thanks. That was the problem, I didn't notice that. Sorry for the stupid 
question..


--
Sudheer

Reply via email to