I am very new to C language and I got really big assignment in my
work.
"really big assignments" usually come along with reasonable timeframes
in which to research the technologies involved. They may be
time-sensitive, but not "Urgent".
If you have a "big assignment" that is also "Urgent" then
it is within your capabilities (that is, you have a reasonable
chance of success) -- or else it is not within your capabilities,
in which case it is not a "really big assignment" but rather
an "impossible assignment" for you. Which might make it urgent
for you, but not for -us-.
"really big assignment" together with not knowing fundamentals
of what you have to do tends to suggest either (1) homework; or
(2) that you volunteered for something over your head.
I am wondering if anyone can help me.........I need to port
compiler from unix to windows and compiler is written partially in c
and partially in fortran. I guess i need to change host specific files
to make it working.
And possibly *many* other things as well, depending on how portable
to software was in the first place. It might not even be possible
in the new system, as some capabilities the original system had
might not be present in the new one and it might not be practical
to implement them. And it might not be possible on the new system to
link routines from the supplied C compiler with routines from
the supplied Fortran compiler.
I wonder if standard header files are going to
change in this case.
Not in the way you mean. If they are standard header files then
they do whatever implementation magic is necessary to import
the standard functionality. The implementation magic varies from
system to system and even version to version, but the thing
about *standard* header files is that the functionality they
import is *standard* -- the same functionality on each system.
You don't care what the header files look like (they are not
necessarily even text files), you only care what functionality they
alow you.
my current windows compiler doesn't have
sys/resource.h but unix compiler does. shud i create one or talk to my
vendor about missing header file or i need to do some work around for
that part.
sys/resource.h is not a "standard header file" in any version of
the C language standard. It might be part of some -other- standard,
but not part of the -C- standard. Therefore you should not talk
talk to your vendor about the "missing header file" because it is
not "missing": it is simply not functionality that the second
operating system (Windows) happens to have. If your program depends
on that functionality, you are going to have to find a work around
or disable that part of the program or give up the project.
<off topic>
In some Unix systems, sys/resource.h is used to examine or
set resource limits (such as the maximum stack size). There is
no real need to -reduce- your resources for a compiler, and
the way that Windows controls resource limits is different enough
from Unix's that you would likely want some completely different
way of increasing the resources... modifying the "properties" of
the executable for example.
Also plz explain concept of header files in little details..........
Read any C manual. Read the comp.lang.c FAQ. Read the C language
standards themselves.