S
subramanian100in
Is there any difference between porting and migrating.
Kindly explain
Kindly explain
Swallows migrate, unfortunate programmers port.Is there any difference between porting and migrating.
Is there any difference between porting and migrating.
Kindly explain
Is there any difference between porting and migrating.
Kindly explain
Swallows migrate, unfortunate programmers port.
Is there any difference between porting and migrating.
(e-mail address removed), India said:
Not as far as C is concerned. They both mean "copy the source code to
the new system, and re-compile". This is a trouble-free process taking
just a few seconds, if you wrote the C code properly.
Yes, unfortunately, this is a mainly theoretic view of the subject,
since there are almost no real world examples of this.
Yes, unfortunately, this is a mainly theoretic view of the subject,
since there are almost no real world examples of this.
Richard Heathfield said:In my universe, porting code between systems is normal
Yes, unfortunately, this is a mainly theoretic view of the subject,
since there are almost no real world examples of this.
[email protected] said:Is there any difference between porting and migrating.
Mine, too,
but that was because we had a massive compatibility layer
underneath.
Well, "basically" is the key word there, but I've seen compatibilityI developed for three platforms simultaneously--the "port"
was basically a different Makefile.
Well, for mommy's basement fantasy "Hello World" programs,But if you wanted it on a new platform, another engineer (or team of
engineers) came in and ported that compatibility layer. That was
not a one-liner.
Bill Reid said:You live in his mother's basement too?
Well, for mommy's basement fantasy "Hello World" programs,
it would be a zero-liner, just like Java "ports"...
Richard said:(e-mail address removed), India said:
Not as far as C is concerned. They both mean "copy the source code to
the new system, and re-compile". This is a trouble-free process taking
just a few seconds, if you wrote the C code properly.
Is there any difference between porting and migrating.
I think there may be a distinction here. Yes, migrating is moving and
recompiling all that properly, standard conforming, written code.
However, porting will have to be done for all that code written to
abstract away the OS or hardware platform, and that is where the devil
lives.
(e-mail address removed), India said:
Not as far as C is concerned. They both mean "copy the source code to
the new system, and re-compile". This is a trouble-free process taking
just a few seconds, if you wrote the C code properly.
jaysome said:I have this simple Standard C program:
#include <stdio.h>
int main(void)
{
printf("Hello world.\n");
return 0;
}
I copied the source code file from my IBM mainframe to my Windows box.
I compiled it using Microsoft VC++, but I got a lot of warnings:
hello.c(1) : error C2449: found '{' at file scope (missing function
header?)
hello.c(1) : error C2018: unknown character '0x89'
hello.c(2) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
hello.exe - 62 error(s), 0 warning(s)
I also compiled it with gcc and got an error:
gcc -Wall -W -o hello hello.c
main.c:1: parse error before `{'
When I look at the code on my monitor on my IBM mainframe it looks
like "portable" C. I suspect there is a character encoding issue and I
need to "migrate" the code from the IBM mainframe to my PC by using an
EBCDIC-to-ASCII translator, as I seem to recall that the encoding of
the character set is not specified by the C standard.
santosh said:jaysome said:I have this simple Standard C program:
#include <stdio.h>
int main(void)
{
printf("Hello world.\n");
return 0;
}
I copied the source code file from my IBM mainframe to my Windows box.
I compiled it using Microsoft VC++, but I got a lot of warnings:
hello.c(1) : error C2449: found '{' at file scope (missing function
header?)
hello.c(1) : error C2018: unknown character '0x89'
hello.c(2) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
hello.exe - 62 error(s), 0 warning(s)
I also compiled it with gcc and got an error:
gcc -Wall -W -o hello hello.c
main.c:1: parse error before `{'
When I look at the code on my monitor on my IBM mainframe it looks
like "portable" C. I suspect there is a character encoding issue and I
need to "migrate" the code from the IBM mainframe to my PC by using an
EBCDIC-to-ASCII translator, as I seem to recall that the encoding of
the character set is not specified by the C standard.
But, this can be called porting or migrating, [ ... ]
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.