[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] undefined sanitizer
From: |
Vincent Lefevre |
Subject: |
Re: [Tinycc-devel] undefined sanitizer |
Date: |
Sun, 23 Jun 2019 14:12:03 +0200 |
User-agent: |
Mutt/1.12.1+33 (6a74e24e) vl-117499 (2019-06-23) |
On 2019-06-23 12:56:34 +0200, Christian Jullien wrote:
> #if does not help to deal with different processors when only some
> of them have performance penalties.
That's entirely the choice of the developer. Under various means
(compiler options, configure script, etc.), macros can be defined
to give information about the OS, the target architecture (e.g.
with -march=... with GCC), the target architecture for tuning
(e.g. with -mtune=... with GCC), whether some features are enabled
or not[*], the user choices (such as size vs performance), etc.
Then any of these macros can be used with #if.
[*] Some features may have stricter alignment constraints.
> The benefit of a warning is to question the developer about its code
> and possible way to fix it.
Spurious warnings are bad. Let the user/developer decide what he
wants.
--
Vincent Lefèvre <address@hidden> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
- [Tinycc-devel] undefined sanitizer, Mike, 2019/06/18
- Re: [Tinycc-devel] undefined sanitizer, Pascal Cuoq, 2019/06/18
- Re: [Tinycc-devel] undefined sanitizer, Michael Matz, 2019/06/21
- Re: [Tinycc-devel] undefined sanitizer, Vincent Lefevre, 2019/06/22
- Re: [Tinycc-devel] undefined sanitizer, Michael Matz, 2019/06/22
- Re: [Tinycc-devel] undefined sanitizer, Vincent Lefevre, 2019/06/22
- Re: [Tinycc-devel] undefined sanitizer, Christian Jullien, 2019/06/23
- Re: [Tinycc-devel] undefined sanitizer, Vincent Lefevre, 2019/06/23
- Re: [Tinycc-devel] undefined sanitizer, Christian Jullien, 2019/06/23
- Re: [Tinycc-devel] undefined sanitizer,
Vincent Lefevre <=
- Re: [Tinycc-devel] undefined sanitizer, Pascal Cuoq, 2019/06/23
- Re: [Tinycc-devel] undefined sanitizer, Vincent Lefevre, 2019/06/23