On 30/03/2019 08:13, Albert Abramson wrote:
Now I'm on a totally unrelated project, writing code in C, but still using
the GCC compiler under the hood. The previous developers used raw pointers
quite a bit. However, as I expand the code, I'd like to use some of the
features in C++, but Atmel St
Now I'm on a totally unrelated project, writing code in C, but still using
the GCC compiler under the hood. The previous developers used raw pointers
quite a bit. However, as I expand the code, I'd like to use some of the
features in C++, but Atmel Studio doesn't REALLY support C++.
Code::Blocks
Here is the way I understood the goal of your long quest (I may be
completely mistaken since I do not quite get what part of the job you
want to leave to the language and what part to its compiler)
"Is there a language that allow the developer to add information about
the way a particular program
On Mon, Oct 14, 2013 at 5:31 PM, Albert Abramson
wrote:
>
> Is there a language out there (similar to Fortran or a dialect of C)
> that doesn't inhibit the compiler from taking advantage of every
> optimization possible?
Sure: Fortran.
> Is there some way to provide a C/C++ compiler
> with extr
GCC does value analysis similar to what you mentioned. You'll find it
under the -fdump-tree-vrp options. To provide extra information you
can add range checks which GCC will pick up on. If you know a value is
small, use a small integer type and gcc will pick up the range of
values which can be assi
I have been looking everywhere online and talking to other coders at
every opportunity about this, but cannot find a complete answer.
Different languages have different obstacles to complete optimization.
Software developers often have to drop down into non-portable
Assembly because they can't get