processor

Which processor to test C++11/C11 acquire release semantic

陌路散爱 提交于 2019-12-08 08:59:30
问题 I am looking for a processor that performs read acquire/store release with the same semantic as specified in the C11/C++11 standards. x86 processor synchronization is much too strong so that it is impossible to test a lock-free algorithm using acquire/release semantic. The same seems to apply to ARM processor because this architecture offers either stronger or weaker read/store synchronizations. Maybe ARMv8.3 may offer the right semantic but I believe there are no ARMv8.3 processor on the

What is the size of integer in 8-bit, 16-bit, 32-bit processors/microcontrollers?

我与影子孤独终老i 提交于 2019-12-07 12:43:38
问题 What is the size of integer in 8-bit, 16-bit, 32-bit processors/microcontrollers ? I guess it depends on the internal accumulator/register size. But not sure. Thanks 回答1: I'm only aware of one programming language that defines an integer data type, but it's seldom used for 8 and 16-bit architectures. C is the most widely used language for programming 8-bit, 16-bit, and 32-bit architectures, so I assume you are looking for an answer in the context of C. There are several "integer" data types

Process Scheduling from Processor point of view

蓝咒 提交于 2019-12-07 12:32:18
问题 I understand that the scheduling is done by the kernel. Let us suppose a process (P1) in Linux is currently executing on the processor. Since the current process doesn't know anything about the time slice and the kernel is currently not executing on the processor, how does the kernel schedule the next process to execute? Is there some kind of interrupt to tell the processor to switch to execute the kernel or any other mechanism for the purpose? 回答1: In brief, it is an interrupt which gives

How can I get the processor architecture of an assembly dll? [duplicate]

☆樱花仙子☆ 提交于 2019-12-07 05:32:08
问题 This question already has answers here : How to check programmatically whether a managed assembly is x86, x64 or AnyCPU? (2 answers) Closed 11 months ago . Can I get the processor architecture by loading the dll programmatically in c#? Is there a class that can do this? I need to get wether the dll is x86, x64, MSIL etc.. 回答1: Assuming you are only looking at .net assemblies, you can use CorFlags.exe for look at the header of the image. This blog post explains the usage to determing how to

Which processor to test C++11/C11 acquire release semantic

五迷三道 提交于 2019-12-07 02:09:25
I am looking for a processor that performs read acquire/store release with the same semantic as specified in the C11/C++11 standards. x86 processor synchronization is much too strong so that it is impossible to test a lock-free algorithm using acquire/release semantic. The same seems to apply to ARM processor because this architecture offers either stronger or weaker read/store synchronizations. Maybe ARMv8.3 may offer the right semantic but I believe there are no ARMv8.3 processor on the market. On which processor or architecture should I test a lock-free algorithm using acquire-release

Write access violation on read instruction

南楼画角 提交于 2019-12-06 13:30:50
We use SQLite library in our product and suddenly after recompilation with different compiler version (Visual C++) it started crashing on customer computers. The crash is ExceptionAddress: 0710eadd (sqlite3!sqlite3_transfer_bindings+0x0004e5bd) ExceptionCode: c0000005 (Access violation) ExceptionFlags: 00000000 NumberParameters: 2 Parameter[0]: 00000001 Parameter[1]: 07148688 Attempt to write to address 07148688 and the code causing the crash is the following (part of sqlite3MutexInit): 0710ead0 b804811407 mov eax, 0x07148104 0710ead5 b97c861407 mov ecx, 0x0714867c 0710eada 0f44c8 cmove ecx,

Are C++ int operations atomic on the mips architecture

大憨熊 提交于 2019-12-06 04:38:59
问题 I wonder if I could read or write shared int value without locking on mips cpu (especially Amazon or Danube). What I mean is if such a read or write are atomic (other thread can't interrupt them). To be clear - I don't want to prevent the race between threads, but I care if int value itself is not corrupted. Assuming that the compiler aligns all ints at the boundaries of cpu word, it should be possible. I use gcc (g++). Tests also shows that it seems work correctly. But maybe someone knows it

What is the size of integer in 8-bit, 16-bit, 32-bit processors/microcontrollers?

廉价感情. 提交于 2019-12-06 02:15:54
What is the size of integer in 8-bit, 16-bit, 32-bit processors/microcontrollers ? I guess it depends on the internal accumulator/register size. But not sure. Thanks I'm only aware of one programming language that defines an integer data type, but it's seldom used for 8 and 16-bit architectures. C is the most widely used language for programming 8-bit, 16-bit, and 32-bit architectures, so I assume you are looking for an answer in the context of C. There are several "integer" data types in C: char , short , int , long , etc..., but I will assume what you really mean is the int data type. The

Process Scheduling from Processor point of view

扶醉桌前 提交于 2019-12-06 01:35:31
I understand that the scheduling is done by the kernel. Let us suppose a process (P1) in Linux is currently executing on the processor. Since the current process doesn't know anything about the time slice and the kernel is currently not executing on the processor, how does the kernel schedule the next process to execute? Is there some kind of interrupt to tell the processor to switch to execute the kernel or any other mechanism for the purpose? Arun In brief, it is an interrupt which gives control back to the kernel. The interrupt may appear due to any reason. Most of the times the kernel gets

Why doesn't my processor have built-in BigInt support?

瘦欲@ 提交于 2019-12-05 20:34:38
问题 As far as I understood it, BigInts are usually implemented in most programming languages as arrays containing digits, where, eg.: when adding two of them, each digit is added one after another like we know it from school, e.g.: 246 816 * * ---- 1062 Where * marks that there was an overflow. I learned it this way at school and all BigInt adding functions I've implemented work similar to the example above. So we all know that our processors can only natively manage ints from 0 to 2^32 / 2^64 .