<br><br><div class="gmail_quote">On Mon, Jan 7, 2013 at 1:57 PM, SaNtosh kuLkarni <span dir="ltr"><<a href="mailto:santosh.yesoptus@gmail.com" target="_blank">santosh.yesoptus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Anuz,<div><br></div><div>say if i want to replace <span style="font-family:arial,sans-serif;font-size:13px">checksum with a checksum.c considering say if i get a better performance , what needs to be done,</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Thanks</span></div></div></blockquote><div>which checksum file are you talking about?<br>
<br>On a quick find with checksum.S I found these files: <br>./arch/xtensa/lib/checksum.S<br>./arch/sh/lib/checksum.S<br>./arch/m32r/lib/checksum.S<br>./arch/cris/arch-v32/lib/checksum.S<br>./arch/cris/arch-v10/lib/checksum.S<br>
./arch/score/lib/checksum.S<br><br>and then on quick find with checksum.c, I found these fliles:<br>./arch/h8300/lib/checksum.c<br>./arch/tile/lib/checksum.c<br>./arch/alpha/lib/checksum.c<br>./arch/m68k/lib/checksum.c<br>
./arch/hexagon/lib/checksum.c<br>./arch/mn10300/lib/checksum.c<br>./arch/parisc/lib/checksum.c<br>./arch/frv/lib/checksum.c<br>./arch/ia64/lib/checksum.c<br>./arch/c6x/lib/checksum.c<br>./lib/checksum.c<br><br>These files seems to be one of tcp/ip/upd checksum routines. if these are the files you are trying to change, then why are you trying to change the format? And how do you know that changing from Assembly to C will improve the efficiency?<br>
<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">
On Mon, Jan 7, 2013 at 7:09 PM, Anuz Pratap Singh Tomar <span dir="ltr"><<a href="mailto:chambilkethakur@gmail.com" target="_blank">chambilkethakur@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote">On Mon, Jan 7, 2013 at 12:34 PM, SaNtosh kuLkarni <span dir="ltr"><<a href="mailto:santosh.yesoptus@gmail.com" target="_blank">santosh.yesoptus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi is it possible that the assembly code .S file in linux kernel be replaced by a .C file. <span><font color="#888888"><br clear="all"><div><br></div></font></span></div></blockquote><div>This seems like a very general question. Which file do you want to replace and why?<br>
You should understand that any *.S file contains arch specific code, which is written in assembly for optimization/efficiency reasons. Replacing it with an equivalent C code may undermine those goals.<span><font color="#888888"><br>
<br></font></span></div><span><font color="#888888"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><span><font color="#888888"><div></div>-- <br><b style="color:rgb(102,102,204)">Regards,<br>Santosh</b><br>
</font></span></div>
<br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></font></span></div><span><font color="#888888"><br><br clear="all"><br>-- <br>Thank you <br>Warm Regards<br>Anuz<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><b style="color:rgb(102,102,204)">Regards,<br>Santosh</b><br>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br>Thank you <br>Warm Regards<br>Anuz<br>