Hi Julia,

I did some test with AMD64 and it was working. But on front page of
HelenOS are placed 7 architectures. I tested only for two. Should I do
my driver workable with other 5 architectures inside of GSoC program
or I can put off this task?

You should apply best effort here. "Best effort" means that you will do everything reasonable to achieve the goal, but you won't kill yourself or loose the other goals while trying.

More specifically, you should always write your code in a portable way and without exploiting platform-dependent behaviour. This means for example that you should not rely on platform-dependent facts such as sizeof(int) == sizeof(long), sizeof(int) == sizeof(void *), that integers are stored in a little-endian fashion in the memory, you should always use platform-neutral printf format directives, etc.

Very similar portability requirements are nowadays implied if you write any decent user space program in any general-purpose operating system, including Linux and Windows. They shouldn't be very surprising.

You should be always able to at least test that your code compiles cleanly for all architectures HelenOS supports, Simply use the tools/toolchain.sh script to deploy the cross-compilers for all architectures we support and use the tools/check.sh script to compile HelenOS for all major platform targets.


With respect to functional testing: We certainly cannot and won't force you to actually run and test your code on machines/emulators of strange architectures which you have no access to (or their setup would be extremely complicated and time-consuming for you). But I suppose that testing your code in QEMU for ia32 and amd64 (at least) should be easy to do in all cases.

With functional testing on ia32 and amd64, focus on portable code and clean compilation for all architectures the chances that everything will also work fine on all architectures are pretty high.


M.D.

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to