Skip to content
Advertisement

Is there any profiler that works with -fomit-frame-pointer on x86_64?

SysProf doesn’t properly generate call stack without it, GProf isn’t accurate at all. And also, are profilers that work without -fno-omit-frame-pointer as accurate as those that rely on it? Answer There are none that I’m aware of. With frame pointers, walking a stack is a fairly simple exercise. You simply dereference the frame pointer to find the old frame pointer,

Is wget or similar programs always available on POSIX systems?

Is there an HTTP client like wget/lynx/GET that is distributed by default in POSIX or *nix operating systems that could be used for maximum portability? I know most systems have wget or lynx installed, but I seem to remember installing some Ubuntu server systems using default settings and they had neither wget or lynx installed in the base package. I

Gem Command not found

I have installed gem on Ubuntu 10.10 32 bit with But when I try to run I get the error of the command not being found. I installed gem, is there any reason it is saying it can’t find the command? These files were install by gem package http://pastie.org/3483416 Answer Are you wanting ruby gems? If so, you need to

Runtime.exec not working

I’m trying to run the following code to swap filenames. I’m using Runtime.exec. The code throws IOException. Anyway to fix this? And the error: 02-28 07:48:02.936: W/System.err(14399): java.io.IOException: Error running exec(). Command: [file1=/mnt/sdcard/fsimages_3, &&, file2=/mnt/sdcard/fsimages, &&, temp=”$(/system/xbin/mktemp, -dp, /mnt/sdcard)”, &&, /system/xbin/mv, “$file1”, $temp, &&, /system/xbin/mv, “$file2”, “$file1″, &&, /system/xbin/mv, $temp/”$file1”, “$file2”] Working Directory: null Environment: null It looks like Runtime.exec

Where is PATH_MAX defined in Linux?

Which header file should I invoke with #include to be able to use PATH_MAX as an int for sizing a string? I want to be able to declare: But when I do so my compiler (Clang/LLVM on Linux) issues the following error: I tried doing a google search but still no luck. #include <limits.h> Does NOT fix the problem/error. Am

C strip html between

How can i strip the HTML from document between and including the <…> tags in a HTML document using C? My current program uses curl to get the contents of the webpage and puts it into a text file, it then reads from the text file and removes the <>, but i am unsure of how to remove everything between

How to download a file from server using SSH? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Closed 10 years ago. Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. I need to download a file from server to my desktop. (UBUNTU 10.04) I don’t have a web access

Adding newline characters to unix shell variables

I have a variable in a shell script in which I’d like to format the data. The variable stores new data during every iteration of a loop. Each time the new data is stored, I’d like to insert a new line character. Here is how I’m trying to store the data into the variable. VARIABLE=”$VARIABLE ‘n’ SomeData” Unfortunately, the output

Linux SCHED_OTHER, SCHED_FIFO and SCHED_RR – differences

Can someone explain the differences between SCHED_OTHER, SCHED_FIFO and SCHED_RR? Thanks Answer SCHED_FIFO and SCHED_RR are so called “real-time” policies. They implement the fixed-priority real-time scheduling specified by the POSIX standard. Tasks with these policies preempt every other task, which can thus easily go into starvation (if they don’t release the CPU). The difference between SCHED_FIFO and SCHED_RR is that

Advertisement