SpecSim User Manual | ![]() ![]() |
As of now, SpecSim release contains four native API implementations.The first implementation (qthread.c), uses the qthread library developed by David Keppel at University of Washington many years back. As its name suggests, the main advantage of using qthread is that it is fast and small. However, it doesn't seem to work on windows platform, and it doesn't work advanced debug tool such as purify.
The second implementation (pthread1.c), uses the posix thread. Since it is a standard, the obvious advantage is that it is well-documented and they are supposed to work for all Unix platforms. The bad news is that Redhat 6.2 has a reported problem for its pthread, probably due to a problem of libc.a; and the cygwin implementation for Win32 is not yet complete.
The third implementation (pthread1.c), again uses the posix thread. The difference from the previous one is that it tries to exploit the fact the posix threads can run in parallel (not just concurrently) on a multi-processor machine, so as to improve simulation speed.
The fourth implementation (win32.c), uses the Win32 kernel API to manipulate threads.
generated by doc++