I got the following error when I ran ``ld -e test.o -e f''
where f is a function
------
int f() {
}
------
ld: warning: cannot find entry symbol f; defaulting to 0000000008048094
 
:D
 
On 5/20/06, Harender Bisht <[EMAIL PROTECTED]> wrote:
hi ,
        I do not know you can do it with out assembly language .
        but you can call other routine before the main function called in the program .
with regards
 --harendra singh bisht

 
          

On 5/20/06, Mayur <[EMAIL PROTECTED] > wrote:
check out the ld option -e foo. :)


On 5/15/06, Thomas.Chang < [EMAIL PROTECTED] > wrote:

The main() is just an entry to a program, telling the computer to
execute right here.
So if you can tell the CPU in other ways, you can abandon main().
That's why when computer starts, POST will be triggered, CPU just fetch
the first instruction from bios and execute.


deepblue wrote:

>Hi Arulanandan P,
>
>Ya, I would say that if you use assembly language routine mnemonics
>then you can do that. I dont know exactly how to do that, however I
>feel this is the only way to do such.
>
>Regards,
>-DeepBlue
>
>
>>
>
>
>







--
(¨`ˇ.ˇ´¨) Always
`ˇ.¸(¨`ˇ.ˇ´¨) Keep
(¨`ˇ.ˇ´¨)¸.ˇ´ Smiling!
  `ˇ.¸.ˇ´
    »-(¯`v´¯)-»{Harendra}»-(¯`v´¯)-»
friends are like angles , who help us to fly when our wings have forgotten .how to fly ?

, 133470973390.236450, 270};
int main(){m[2]--?m[0]*=4,m[1]*=5,main():printf(m);}

Don't attach in Microsoft (.DOC, .PPT) format
http://www.gnu.org/philosophy/no-word-attachments.html

Reply via email to