Sponsored Content
Full Discussion: Byte swap timing
Top Forums Programming Byte swap timing Post 302975301 by Corona688 on Friday 10th of June 2016 03:27:55 PM
Old 06-10-2016
Quote:
Originally Posted by migurus
(to Corona) newer compiler is better, I assume, but the timing of bswap suffered - how?
That bswap is slower then the macro does not mean bswap got worse, for all we know, the macro got optimized better, to a degree it exceeded the external bswap. Too many circumstances were changed to deduce anything from those numbers.

If you insist on a completely wild guess, I would wonder if bswap() in modern gcc is inline assembly, and the compiler is optimizing the macro into a bswap instruction. The compiler can do a better job optimizing instructions it makes than instructions you force it to use. But to get a definitive answer on what's going on you'll have to take a look at the assembly.
This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

timing a loop in unix.

hi guys.. i have a shell script that loops through a certain directory to see if a file has been created and then prints the file if it exists... the only problem i have now is that sometimes the flat does not get created by the program thats supposed to create it, in this scenario, my loop... (1 Reply)
Discussion started by: wolkott
1 Replies

2. UNIX for Advanced & Expert Users

scp timing out

having problems using scp in that during peak hours it appears to time out. anyone have similar experiences? any thoughts regarding a solution... (1 Reply)
Discussion started by: jph
1 Replies

3. Shell Programming and Scripting

Timing out a SSH

I need to make it so an autmated process which involves ssh, times out if ssh prompts for a password. Most of the time it shouldnt prompt for a password. But if it does i need it to time it out or get a status and stop the ssh and log that the ssh failed and move onto the next server. Is there any... (9 Replies)
Discussion started by: rcunn87
9 Replies

4. Programming

timing your functions

hi everyone. If you have a function created in your code and you want to find out how long it takes for it to run you can use a struct called gettimeofday(). so lets say we have a function like this int myfunction (int r) { /*some math calculations*/ return answer; } How do i set up... (3 Replies)
Discussion started by: bebop1111116
3 Replies

5. Solaris

Swap config - Mirror swap or not?

Hello and thanks in advance. I have a Sun box with raid 1 on the O/S disks using solaris svm. I want to unmirror my swap partition, and add the slice on the second disk as an additional swap device. This would give me twice as much swap space. I have been warned not to do this by some... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

6. Shell Programming and Scripting

Check if 2 files are identical byte-to-byte?

In my server migration requirement, I need to compare if one file on old server is exactly the same as the corresponding file on the new server. For diff and comm, the inputs need to be sorted. But I do not want to disturb the content of the file and need to find byte-to-byte match. Please... (4 Replies)
Discussion started by: krishmaths
4 Replies

7. Shell Programming and Scripting

Remove a byte(Last byte from the last line)

Hi All Can anyone please suggest me how to remove the last byte from a falt file .This is from the last line's last BYTE. Please suggest me something. Thank's and regards Vinay (1 Reply)
Discussion started by: vinayrao
1 Replies

8. HP-UX

Swap device file and swap sapce

Hi I have an integrity machine rx7620 and rx8640 running hp-ux 11.31. I'm planning to fine tune the system: - I would like to know when does the memory swap space spill over to the device swap space? - And how much % of memory swap utilization should be specified (swap space device... (6 Replies)
Discussion started by: lamoul
6 Replies

9. Shell Programming and Scripting

Timing a script

i have a very big script i have that i'd like to add a timeout to. this script runs on a several remote host. i update this script with timeout clause and then copy it over to all the hosts on which it is currently on. basically, i want the timeout to make the script abort/exit if it's... (1 Reply)
Discussion started by: SkySmart
1 Replies

10. Solaris

Explain the output of swap -s and swap -l

Hi Solaris Folks :), I need to calculate the swap usage on solaris server, please let me understand the output of below swap -s and swap -l commands. $swap -s total: 1774912k bytes allocated + 240616k reserved = 2015528k used, 14542512k available $swap -l swapfile dev swaplo... (6 Replies)
Discussion started by: seenuvasan1985
6 Replies
lc(Mono 2.6)															      lc(Mono 2.6)

NAME
lc - Mono License Compiler SYNOPSIS
lc -c filename -t targetassembly [-i reference...] [-v] [-o outputpath] [-nologo] DESCRIPTION
lc tool is a license compiler for Mono. It's used to convert a licenses.licx file to a resource that can be embedded into an executable. When using commercial components for .NET they often require a license resource at runtime to make sure the developer was licensed to use this control. The most common way of making sure the component was properly licensed is by using license resources. At compile time the developer uses the lc tool to convert a licenses.licx file to a programname.exe.licenses file and embed that as a managed resource during compilation. RUNTIME OPTIONS
The following options are available: --complist=filename, -c filename This option is used to specify the input file, the licenses.licx file to create a license reesource for. This option is required. The license compiler will read each line in this file and try to load the types specified on that line. --target=assemblyname, -t targetassembly full assembly name with file extension for the target assembly. The license compiler uses this as a key when compiling the licenses. It has to match the assembly the resource will be embedded in. This option is required. --load=reference, -i reference Assembly reference to load before trying to compile a license. This option is needed for assemblies where the references are not in the gac. Compilers should pass all references to the license compiler. --verbose,, -v Gives more verbose output about the license compiling process. --help, -h Displays usage instructions. --outdir=path, -o path Target path file the licenses resource. By default the license compiler emits the resource in the current directory. The filename will always match the target assembly passed to --target with .licenses added. --nologo Do not emit the "Mono License Compiler" logo on stdout while compilng. LICENSE FILES
The format for the license files (licenses.licx) is the following: # comment namespace.type, assemblyname namespace.type, full-assemblyname All lines starting with a # are ignored. the first form requires that the assembly was loaded through the --load,-i option but does not require the full assembly name, only the first part. The second form requires the full assembly name including locale, version and publickeytoken. MAILING LISTS
Mailing lists are listed at the http://www.mono-project.com/Mailing_Lists WEB SITE
http://www.mono-project.com SEE ALSO
mono(1), mcs(1) lc(Mono 2.6)
All times are GMT -4. The time now is 07:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy