> On Apr 22, 2020, at 3:12 AM, Thomas Monjalon <tho...@monjalon.net> wrote:
>
> 22/04/2020 07:11, Honnappa Nagarahalli:
>>>> 22/04/2020 02:05, Honnappa Nagarahalli:
>>>>> 22/04/2020 02:00, Thomas Monjalon:
>>>>>> I don't want know why and when, but it seems the file test_ring.c
>>>>>> became very long to compile, especially with clang.
>>>>>
>>>>> What is the compiler version? Is this on master?
>>>>
>>>> clang 9.0.1 compiling DPDK master.
>>> I think, it is the compiler. The issues were observed with clang-7 during
>>> the last
>>> release. Clang-8 worked fine. Still, test_ring.c was re-worked to compile in
>>> shorter time. Looks like things are back to broken in 9.0.1.
>> I am able to reproduce, need sometime to come up with a fix.
>
> OK thank you.
> Note that I was not asking for a fix ;-)
Is it possible to break the file into smaller parts, then you can use multiple
threads to build all of the parts. I noticed in some of the other files with
large tables or macros it was easier to split the file up and have ninja use
multiple threads to build it. $0.02
>
>
>>>>> Any info on test_ring_perf.c?
>>>>
>>>> This one looks slow to compile as well.
>>>>
>>>>>> I have no solution to shorten the compilation time, so I propose
>>>>>> to rename test_ring.c to test_patien.ce.
>>>>>> Disclosure: I am failing this test :-(
>>>>
>>>> The object file takes 5 to 11MB.
>>>> I don't know how much this test is magic, but I hope it does a lot
>>>> more than this 256B program:
>>>> https://www.youtube.com/watch?v=Imquk_3oFf4
>
>
>