|
||||
Re: Alternatives to current development
Moved
__________________
Earn some spare cash and get cash back at stores like NewEgg and more:
http://quickrewards.net/?r=!F94VXV35D5MV2 (My shameless referral link) ![]() ![]() |
|
||||
Re: Alternatives to current development
Running Android on a CE kernel... Just seems wrong.
What is really left that would benefit throwing away everything that's been done thus far and basically starting over on a complete rewrite that sounds bad even on paper... who knows how it would actually work, if at all. |
|
||||
The idea is totally ludicrous. Android doesn't run on a generic POSIX layer, it has a number of custom kernel drivers. Figuring out how to shoehorn them into CE would be a bear, even if you had CE kernel source.
It would be an utter waste of time. Look at how well Cygwin emulates POSIX on desktop windows (it's a dog). CE is even more lobotomized. Ridiculous. Sent from my TP2 using Tapatalk |
|
||||
Re: Alternatives to current development
Quote:
I see your point about Cygwin DLL performance - however, many of the POSIX commands that would be required would almost be basic wrappers... the majority of the thread commands have near-direct analogs with the Windows API, for instance. |
|
||||
Re: Alternatives to current development
Quote:
Last edited by vinceweis; 05-05-2011 at 02:06 AM. |
|
||||
Re: Alternatives to current development
Quote:
Code:
typedef struct pthread { HANDLE mThreadHandle; } pthread_t; int pthread_create( pthread_t * restrict thread, const pthread_attr_t * restrict attr, void * (*start_routine)(void *), void * restrict arg ) { //ignore attr for now thread = malloc(sizeof(pthread_t)); thread->mThreadHandle = CreateThread( NULL, //security descriptor LPSECURITY_ATTRIBUTES 0, //stack size. 0 is default /* ** the below is kinda wonky, and won't work on x64 systems. ** All current ARM processors are 32-bit. ** The size of a DWORD (as Win32/64 defines as the return type) ** is the same as the size of a pointer (as POSIX ** has as the return type) on 32-bit architectures. */ (LPTHREAD_START_ROUTINE)start_routine, arg, 0, //start immediately NULL //ptr to thread ID ); if (thread->mThreadHandle == NULL) { //process from GetLastError. Don't feel like doing right now. return EINVAL; } return 0; } |
|
||||
Congratulations, you've duplicated one API, only a couple thousand more to go. If you implement one/day successfully, you might be done in 3-5 years. Hint: you won't average one/day.
Sent from my TP2 using Tapatalk |
|
||||
Re: Alternatives to current development
lol, I was just going to ask does BT work? GPS? Prox sensor? Ambient light sensor? How about stylus detection?
AmeiseMike, you seem like a sharp guy... Why not help out with the community development? The devs have made great progress, and help is always appreciated. The more people writing code, in theory the more code that makes it into the kernel ![]() |
|
||||
Re: Alternatives to current development
If you cannot duplicate a single basic interface per day, then you aren't very good at what you do. pthreads itself has already been ported to the Windows API in the past, as have several other APIs. To be fair, however, that is not an API, it is a single API procedure, though the other pthread functions would be trivial to implement as well.
As per the 3-year concept... how long have you been trying to port Android onto the TP2, so far? A successful wrapping of the Android system around CE would allow any WinCE device to have 'droid, not just TP2. arrrghhh - they don't need more programmers, they need people who can reverse engineer things. As per BT, GPS, Proximity, Ambient, etc, that would have been handled by the CE drivers. You'd need to implement the JNI wrappers in Android for them, though. |
![]() |
|
|
|