Does Fortran have a standard library? [closed] - fortran

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Is there a Fortran standard library (I keep hearing about something called ISO_C_BINDING, but I haven't seen anything documentation for it), and if so where is the documentation (something like http://docs.python.org/ or https://www.gnu.org/software/libc/manual/ would be helpful) ?

The Fortran standard specifies a set of "intrinsic" subroutines, which I suppose are akin to the C standard library. It's quite limited in scope, though.
Many Fortran compilers also support intrinsics beyond the ones specified by the standard. For a list of the supported intrinsics, see your compiler manual, such as Chapter 8 in the GFortran manual.

Related

108-bit integer in test bench [duplicate]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
I was working on a factorial program, and the program didn't work when trying to find the factorial of 1000. I think big integers are the solution; how do they work? (In either C or C++)
GMP can do bigint operations for both C and C++. The documentation on that site is a good introduction, if you use the C++ classes they behave almost exactly like built-in primitive types.
Look for the GMP. See the other question regarding this topic:
Handling very large Integers
C++ Big Integer

Seeing how c++11 functions are implemented [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
there are some nice functionalities in c++11 however, i would like to port some of them to old c++ code, so is the source-code available of some functions? Like std::to_string ? I just would like to know how they did it.
thanks!
The implementation specifics of the C++11 spec is dependent on your choice of standard library. For example, libc++ for LLVM or libstdc++ for GCC.
You can review the source of those libraries to find what you seek. Be aware that some of the code that implements C++11 features might rely on newer language features than your target, so there's a chance that it won't be a direct copy-and-paste.
Also, remember to respect the license terms of whichever library you borrow from.

List of things that cant be portably(Win/Linux) implemented with C++11 +Boost? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
as a zealous fan of portable C++ :) I recommended to my boss to try to implement one project with C++11 and Boost(Instead of relying on #if and OS specific stuff), and Im confident we can do it with C++11 + Boost.
Now (as a fan of generalizing:) ) Im wondering what are the things that can't be done portably with c++11 + boost.
Afaik std::atomic removes need for Interlocked*, boost has ASIO for sockets, std and boos have threads and mutexes, boost has filesystem...
EDIT: ignore reality of partial support of C++11, lets assume total C++11 compiler support.
Actually this depends on the compilers you use un Windows and in Linux.
You can check a support matrix here. With it, you will exactly know which features you will be able to use, depending on your compilers in Linux and Windows.

Various types of compiler optimisations? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have come across loop-unrolling but what other types of compiler optimization are there for C++ code?
If possible, I'd be interested specifically for the Intel Compiler and GNU Compiler.
If I could obtain a list I can google for the explanation upon each type of optimization.
if you are talking generically, beyond loop unrolling, there is also the basic:
remove unchanging variables out of a loop.
optimizing away unused but initialized objects/variables/instances.(dead code removal)
expanding function calls in line, like strlen();
using processor specific directives/commands.
thats off the top of my head... I will be back with some scientific (wikipedia lol) answers
heres more:
5. static variable inlining
6. complex branch optimization
ok, tired lol heres a decent link i was just looking at :)
http://www.eetimes.com/electronics-products/embedded-tools/4086427/Advanced-Compiler-Optimization-Techniques

convert c++ libraries to objective-c [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Now I am porting c++ game to objective-c.
The source code uses some dlls such as "malloc.h" and this is the standard dll of C++ so it
cannot be included in objective-c.
What is the best way to overcome this problem.
I hope your help.
Thanks.
To convert code from one language to another, you need to have at basic working knowledge of both languages and platforms involved. It sounds as if both your C/C++ and Objective-C knowledge is too rudimentary for you to undertake this task. I'd recommend you take a short course and work on small projects in both languages to gain some experience so that you'll be qualified to perform this translation.