On Mon, Jan 7, 2013 at 1:57 PM, SaNtosh kuLkarni <[email protected]
> wrote:

> Hi Anuz,
>
> say if i want to replace checksum with a checksum.c considering say if i
> get a better performance , what needs to be done,
>
> Thanks
>
which checksum file are you talking about?

On a quick find with checksum.S I found these files:
./arch/xtensa/lib/checksum.S
./arch/sh/lib/checksum.S
./arch/m32r/lib/checksum.S
./arch/cris/arch-v32/lib/checksum.S
./arch/cris/arch-v10/lib/checksum.S
./arch/score/lib/checksum.S

and then on quick find with checksum.c, I found these fliles:
./arch/h8300/lib/checksum.c
./arch/tile/lib/checksum.c
./arch/alpha/lib/checksum.c
./arch/m68k/lib/checksum.c
./arch/hexagon/lib/checksum.c
./arch/mn10300/lib/checksum.c
./arch/parisc/lib/checksum.c
./arch/frv/lib/checksum.c
./arch/ia64/lib/checksum.c
./arch/c6x/lib/checksum.c
./lib/checksum.c

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?


>
>
> On Mon, Jan 7, 2013 at 7:09 PM, Anuz Pratap Singh Tomar <
> [email protected]> wrote:
>
>>
>>
>> On Mon, Jan 7, 2013 at 12:34 PM, SaNtosh kuLkarni <
>> [email protected]> wrote:
>>
>>> Hi is it possible that the assembly code .S file in linux kernel be
>>> replaced by a .C file.
>>>
>>> This seems like a very general question. Which file do you want to
>> replace and why?
>> 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.
>>
>> --
>>> *Regards,
>>> Santosh*
>>>
>>> _______________________________________________
>>> Kernelnewbies mailing list
>>> [email protected]
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>>
>>
>>
>> --
>> Thank you
>> Warm Regards
>> Anuz
>>
>
>
>
> --
> *Regards,
> Santosh*
>



-- 
Thank you
Warm Regards
Anuz
_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to