LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-04-2003, 02:58 PM   #1
rainmann
Member
 
Registered: May 2003
Location: michigan
Posts: 30

Rep: Reputation: 15
Question porting windows ce code to linux


Does anyone have any experience with porting windows ce (ARM processor) code to linux (intel processor)?

I am trying to understand the difficulties in performing such a task.


I know window ce is customized for the device it runs on. Does this mean that porting device specfic code to a laptop running linux is an overwhelming task?

 
Old 06-07-2003, 08:58 PM   #2
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
moved to programming
 
Old 06-08-2003, 01:00 AM   #3
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
i dont know much about the issue, but if its from an ARM processor are you
atleast moving it to a system with another ARM processor, if not....you'd probably need
some sort of emulator to run the code or you'd have to recompile some source code to get it to run on an x86 processor (or other processor of choice). i think youd have to recompile it jsut to get it to run on Linux.
 
Old 06-09-2003, 06:44 AM   #4
rainmann
Member
 
Registered: May 2003
Location: michigan
Posts: 30

Original Poster
Rep: Reputation: 15
I have started to compile the code for x86 running linux. I am getting errors (not surprised) durring compile.

The error are related to declerations. such as ULONG, DWORD, WORD .....

I will just attack it one error at a time. I will have to replace the Win CE headers winsock.h winnt.h windows.h .... with equalvalent linux headers.

I will keep posting my progress.


Thanks
 
Old 06-09-2003, 06:49 AM   #5
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
cool, good luck man...btw, what kind of code is this?
it's my understanding that CE code appears in PDAs. what would
you be using it for on Linux if i may ask.
 
Old 06-09-2003, 07:01 AM   #6
rainmann
Member
 
Registered: May 2003
Location: michigan
Posts: 30

Original Poster
Rep: Reputation: 15
This is a routing protocol code for a device that will communicate P to P. The requirement is to make run in linux. May be this thread should be in the networking forum?

BTW: How do you make directories visiable to Make so that one does not have to type in all the dpendencies for the target.


I have code in /project/include/*.h
and /project/src/*.cpp
In my Makefile

I have Objects = a.o b.o c.o .......

I put in incs = /project/include
srcs = /project/inlcude

then I used VPATH = $(incs):$(src)

a.o : $(objects)
 
Old 06-09-2003, 07:04 AM   #7
rainmann
Member
 
Registered: May 2003
Location: michigan
Posts: 30

Original Poster
Rep: Reputation: 15
oops
:

a : $(Objects)
g++ a $(Objects)

a.o : a.h b.h ........


clean
rm a $(Objects)



How do I can clean it up and use the implicit rules etc..?
 
Old 06-12-2003, 07:19 AM   #8
rainmann
Member
 
Registered: May 2003
Location: michigan
Posts: 30

Original Poster
Rep: Reputation: 15
a windows function for retrieving the termination status of a thread is "GetExitCodeThread" .

What is an equal call linux pthread to get the termination status?

other functions I need to find equal functions in linux are:

wince linux
---------------------------------------------------------
CreateThread ---- pthread_create
GetExitCodeThread ---- ??
TerminateThread --- pthread_kill ??
GetCurrentThreadId -- ???
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Porting C++ code from XP to Linux Bondfire Programming 7 08-12-2004 03:42 PM
Porting C++ code from windows to Linux ashwinipahuja Programming 9 06-03-2004 02:09 AM
Porting c++ code to linux Moons Programming 3 06-03-2004 01:24 AM
Porting C++ code from windows to Linux ashwinipahuja Linux - General 1 03-22-2004 02:57 AM
porting a C++ code to redhat Linux environment KevinG Programming 12 01-02-2004 03:55 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration