|
Может кто подскажет,
размер какого(Program или Data? ) стека (stacksize) имеется ввиду в данном случае :
/*_beginthread() - Create a child thread
Purpose:Create a child thread.
Entry:
initialcode = pointer to thread's startup code address
stacksize = size of stack
argument = argument to be passed to new thread
Exit: success = handle for new thread if successful
failure = (unsigned long) -1L in case of error, errno and _doserrno
are set
Exceptions:
*/
uintptr_t __cdecl _beginthread ( void (__cdecl * initialcode) ( void *), unsigned stacksize,void* argument );
int main(int argc, char* argv[])
{
//========================================================
_beginthread ((void (__cdecl *) (void *))__main,/* ? stacksize */,0);
_beginthread ((void (__cdecl *) (void *))__FPGA_sim,/* ? stacksize */,0);
_beginthread ((void (__cdecl *) (void *))__interrupt,/* ? stacksize */,0);
//--------------------------------------------------------
if(getchar()=='e')return 0;
return 0;
}
E-mail: info@telesys.ru