LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Search Forums
User Name
Password

Notices


Showing results 1 to 7 of 7
Search took 0.02 seconds.
Search: Posts Made By: vmelkon
Forum: Programming 03-17-2024, 09:36 PM
Replies: 11
Views: 268
Posted By vmelkon
OK, if you use if I put : [x] "=t" (x) ...

OK, if you use
if I put : [x] "=t" (x)

then
"fstp %[x];" //Store and pop FPU stack. Write to x
needs to be commented out and x receives 70.55.
Forum: Programming 03-17-2024, 12:47 AM
Replies: 11
Views: 268
Posted By vmelkon
This one works. x receives 70.55 if I put :...

This one works.
x receives 70.55
if I put : [x] "=t" (x)
x gets a NAN


sint64 Test4000()
{
sint64 returnVal;
Global_t1[0]=57.0;
Forum: Programming 03-16-2024, 04:39 PM
Replies: 11
Views: 268
Posted By vmelkon
I didn't even know that you could write "=t" (x)....

I didn't even know that you could write "=t" (x).

I think you are having trouble because you wrote
: "m" (t1), "m"(t1[1]), "m"(t1[2]) /* in */
If your array size is huge, that is too much work....
Forum: Programming 03-15-2024, 01:47 PM
Replies: 11
Views: 268
Posted By vmelkon
For the clobber list, it doesn't seem to...

For the clobber list, it doesn't seem to recognize r8, r9 and all the way to r15.
This is weird since I used r8 and r9 in my assembly code. (I did not run the code yet).

Also, I forgot to give...
Forum: Programming 03-14-2024, 03:54 PM
Replies: 11
Views: 268
Posted By vmelkon
movq seems to copy 64 bit but I want 128 bit,...

movq seems to copy 64 bit but I want 128 bit, since it would be for copying 4 floats to a xmm0. (According to https://www.felixcloutier.com/x86/movq)

I find that variable constraint thing...
Forum: Programming 03-13-2024, 07:56 PM
Replies: 11
Views: 268
Posted By vmelkon
After a week of searching, I found the solution. ...

After a week of searching, I found the solution.
Apparently, if you have an array that is global, there is something special you need to do.
You need to write (*Global_t1)

For example:

sint64...
Forum: Programming 03-13-2024, 12:18 PM
Replies: 11
Views: 268
Posted By vmelkon
Inline assembly - How to deal with arrays in AT&T style?

Hello all,

I know that there are many choices in the world of programming ...
In my case, I have some code that I had written in Intel style for Microsoft VC++ 6. It uses 32 bit addresses. It...
Showing results 1 to 7 of 7

 

Didn't find what you're looking for? Try Google:


  



All times are GMT -5. The time now is 08:55 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration